Hi,
I am a beginner in SAS. I am trying to generate a PROC mean output on SAS Studio run on batch mode.
Attached is the document of my output when I used the following code:
options pagesize=100 linesize=77 nodate pageno=1;
I have used ODS Listing to generate this .lst output. I am looking for a output where in everything fits in a single row with no splitting of the data dispaly. I played changing the numbers in the options, but there was no change.
Any help/suggestions on this is highly appreciated.
Thank you,
Regards,
Nasya
Change page orientation? Or set maxdec to 3 to reduce table size?
@Nasya wrote:
Hi,
I am a beginner in SAS. I am trying to generate a PROC mean output on SAS Studio run on batch mode.
Attached is the document of my output when I used the following code:
options pagesize=100 linesize=77 nodate pageno=1;
I have used ODS Listing to generate this .lst output. I am looking for a output where in everything fits in a single row with no splitting of the data dispaly. I played changing the numbers in the options, but there was no change.
Any help/suggestions on this is highly appreciated.
Thank you,
Regards,
Nasya
Hi Reeza,
Tried changing the orientation and adding maxdec to 2 as well as 3, both didn't work.
Is there any other fix for this?
Thank you,
Regards,
Nasya
Not sure why you want LST output, it's not really useful.
This works for me. Basically, it's a guess and test approach for fitting things on a page though.
ods listing file='/folders/myfolders/demo.lst';
options orientation=landscape linesize=90;
proc means data=sashelp.class maxdec=2 n mean median std min max nolabels;
run;
ods listing close;
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.
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.