This script illustrates the use of PROC PRINT to display data and PROC TRANSPOSE to pivot rows and columns of the SASHELP.CLASS table.
This SAS script generates a panel-structured HTML report using ODS TAGSETS.HTMLPANEL. It features multiple PROC PRINT outputs and a horizontal bar chart generated by PROC GCHART, all based on the SASHELP.CLASS table.
Title "Display class data for &gender"; proc print data=sashelp.class; where sex="&gender"; run;
Proc Summary data = sashelp.class Print; Run;
Proc Means data = sashelp.class; Run;
Proc Summary data = sashelp.class Print; Var Age Height; Run;
Proc Means data = sashelp.class; Var Age Height; Run;
Proc Summary data = sashelp.class Print; Var Age Height; Class Sex; Run;
Proc Means data = sashelp.class; Var Age Height; Class Sex; Run;
Proc Means data = sashelp.class; Class Sex; Run;