How do I display a value across columns, in this case column percent? I am trying to replace the ones with values.
proc report data=CombinedpctTable;
column MINORITY_STATUS academic_period_desc;
define percent / analysis sum /*format=percent8.*/;
define MINORITY_STATUS /group;
define academic_period_desc /across;
run;
Minority | 1 | 1 | 1 | 1 | 1 | 1 |
Hi
By default the number of rows is displayed. You can use nesting like this classVar, analysisVar or the other way round.
the code sample also show how to use the same column more than once by giving it an alias, this allows you to define each column individually.
code sample:
proc report data=sashelp.cars;
column type origin, invoice invoice=invoice2, origin=origin2;
define type / group;
define origin / across;
define origin2 / across;
define invoice / analysis sum format=comma12.;
define invoice2 / analysis sum format=commax12.;
run;
Bruno
Hi
By default the number of rows is displayed. You can use nesting like this classVar, analysisVar or the other way round.
the code sample also show how to use the same column more than once by giving it an alias, this allows you to define each column individually.
code sample:
proc report data=sashelp.cars;
column type origin, invoice invoice=invoice2, origin=origin2;
define type / group;
define origin / across;
define origin2 / across;
define invoice / analysis sum format=comma12.;
define invoice2 / analysis sum format=commax12.;
run;
Bruno
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.