Hi
When I make crosstabs by using Proc Freq, I get the following output:
How can I left-align the row values? (ie. Z038/39 and Z048)
I'm using SAS EG 5.1 32 bit.
Hope someone can help.
Thank you.
How about this one :
data class; set sashelp.class; length _sex $ 40; _sex=catx(' ','~S={just=l}',sex); run; ods listing close; ods pdf file='c:\temp\x.pdf'; ods escapechar='~'; proc freq data=class ; table _sex*age/norow nocol nopercent nocum ; run; ods pdf close; ods listing;
Xia Keshan
How about this one :
data class; set sashelp.class; length _sex $ 40; _sex=catx(' ','~S={just=l}',sex); run; ods listing close; ods pdf file='c:\temp\x.pdf'; ods escapechar='~'; proc freq data=class ; table _sex*age/norow nocol nopercent nocum ; run; ods pdf close; ods listing;
Xia Keshan
Thank you for your answer.
It Works perfectly.
Great way to use the ODS Escape Char
Or slight modification:
proc format library=work;
value $sextemp
'F' = '~S={just=L}F'
'M' = '~S={just=L}M'
;
run;
quit;
ods escapechar='~';
proc freq data=class ;
table sex*age/norow nocol nopercent nocum ;
format sex $sextemp.;
run;
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.