Chapter Contents

Previous

Next
The TRANSPOSE Procedure

Example 3: Labeling Transposed Variables


Procedure features:
PROC TRANSPOSE statement option:
PREFIX=
IDLABEL statement
Data set: SCORE

This example uses the values of the variable in the IDLABEL statement to label transposed variables.


Program

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

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







 Note about code
     idlabel student;
run;

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


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


Chapter Contents

Previous

Next

Top of Page

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