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;

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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