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;
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.