Hello,
I want to use PRINTMISS when I do proc tabulate. But I dont get it to work.
How should I write it out?
Here is my code:
options byline;
ods excel file="c" style=sasweb
options(sheet_interval="none" sheet_name="Country_states" suppress_bylines="off");
PROC TABULATE
DATA=state_list;
VAR year2019 year15_18 difference;
CLASS State / ORDER=UNFORMATTED MISSING;
CLASS gender / ORDER=UNFORMATTED MISSING;
CLASS age / ORDER=UNFORMATTED MISSING;
CLASS weeks/ ORDER=UNFORMATTED MISSING;
by state;
TABLE /* Row Dimension */
/*state={LABEL=''},*/
weeks=''* (year2019*F=6. *sum=''
year15_18*F=6.* sum=''
difference*F=6. *sum=''
)
,
/* Column Dimension */
gender={LABEL=''}*age={LABEL=''}
;
RUN;
ods excel close;
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.