Procedure features: |
PROC
TRANSPOSE statement options:
|
ID statement |
|
Data set: |
SCORE
|
This example uses the values of a variable and a user-supplied value
to name transposed variables.
|
options nodate pageno=1 linesize=80 pagesize=40; |
|
proc transpose data=score out=idnumber name=Test
prefix=sn;
id studentid;
run; |
|
proc print data=idnumber noobs;
title 'Student Test Scores';
run; |
|
Student Test Scores 1
Test sn0545 sn1252 sn1167 sn1230 sn2527 sn4860 sn0674
Test1 94 51 95 63 80 92 75
Test2 91 65 97 75 76 40 78
Final 87 91 97 80 71 86 72
| |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.