Chapter Contents

Previous

Next
The TRANSPOSE Procedure

Procedure Syntax


Tip: Does not support the Output Delivery System
Reminder: You can use the ATTRIB, FORMAT, LABEL, and WHERE statements. See Statements with the Same Function in Multiple Procedures for details. You can also use any global statements as well. See Global Statements for a list.

PROC TRANSPOSE <DATA=input-data-set> <LABEL=label> <LET>
<NAME=name> <OUT=output-data-set> <PREFIX=prefix>;
BY <DESCENDING> variable-1
<...<DESCENDING> variable-n>
<NOTSORTED>;
COPY variable(s);
ID variable;
IDLABEL variable;
VAR variable(s);

To do this Use this statement
Transpose each BY group BY
Copy variables directly without transposing them COPY
Specify a variable whose values name the transposed variables ID
Create labels for the transposed variables IDLABEL
List the variables to transpose VAR


Chapter Contents

Previous

Next

Top of Page

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