Chapter Contents

Previous

Next
The TRANSPOSE Procedure

Example 2: Naming Transposed Variables


Procedure features:
PROC TRANSPOSE statement options:
NAME=
PREFIX=
ID statement
Data set: SCORE

This example uses the values of a variable and a user-supplied value to name transposed variables.


Program

options nodate pageno=1 linesize=80 pagesize=40;


 Note about code
proc transpose data=score out=idnumber name=Test
     prefix=sn;
    id studentid;
run;






 Note about code
proc print data=idnumber noobs;
   title 'Student Test Scores';
run;


Output
The output data set, IDNUMBER [HTML Output]
 [Listing Output]


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.