Published on :
Général SASHELP

Sans titre

This code is also available in: Deutsch Español Français
Awaiting validation
Data Analysis

Type : SASHELP


The script exclusively uses the 'CLASS' table from the standard SASHELP library, which is always available in a SAS environment.

1 Code Block
PROC PRINT
Explanation :
This step displays the entire content of the 'sashelp.class' table in the SAS results window.
Copied!
1PROC PRINT DATA=sashelp.class;
2RUN;
2 Code Block
PROC TRANSPOSE Data
Explanation :
This procedure transposes the 'sashelp.class' table and creates a new output table named 'work.class_t'. The 'id Name' statement specifies that the values of the 'Name' variable will be used as names for the new columns. By default, all numeric variables not specified elsewhere (here Age, Height, Weight) are transposed. The line 'var Height Weight;' is a comment and is therefore not executed.
Copied!
1PROC TRANSPOSE DATA=sashelp.class out=class_t;
2 id Name;
3 *var Height Weight;
4RUN;
This material is provided "as is" by We Are Cas. There are no warranties, expressed or implied, as to merchantability or fitness for a particular purpose regarding the materials or code contained herein. We Are Cas is not responsible for errors in this material as it now exists or will exist, nor does We Are Cas provide technical support for it.