BookmarkSubscribeRSS Feed
Nasya
Obsidian | Level 7

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

3 REPLIES 3
Reeza
Super User

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


 

Nasya
Obsidian | Level 7

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

Reeza
Super User

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;

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1256 views
  • 0 likes
  • 2 in conversation