BookmarkSubscribeRSS Feed
BartG
Calcite | Level 5

Hi,

 

For me, SAS starts with pagesize=75 and linesize=123. After creating a figure with SGPLOT the settings are changed, for example to pagesize=42 and linesize=75. 

 

 

proc options option=(linesize pagesize papersize);
run;

ods listing gpath="C:\Temp";
ods graphics / reset=all noborder outputfmt=emf imagename="Figure";

proc sgplot data=sashelp.baseball;
  scatter x=nAtBat y=nHits;
run;

ods graphics off;

proc options option=linesize;
run;

 

Here is LOG output from the PROC OPTIONS statements:

 

LINESIZE=123 Specifies the line size for the SAS log and for SAS procedure output for the LISTING destination.
PAGESIZE=75 Specifies the number of lines that compose a page of the SAS log and SAS output.
PAPERSIZE=A4 Specifies the paper size to use for printing.

 

LINESIZE=75 Specifies the line size for the SAS log and for SAS procedure output for the LISTING destination.
PAGESIZE=42 Specifies the number of lines that compose a page of the SAS log and SAS output.
PAPERSIZE=A4 Specifies the paper size to use for printing.

 

Moving the PROC OPTIONS around in the code shows that the change happens after the PROC SGPLOT call. 

 

Please help me understand why this happens and what I can do to prevent pagesize/linesize from changing.

 

Thanks,
Bart

2 REPLIES 2
ballardw
Super User

It may help to show the code you actually run so we have a better chance of telling what happens.

You should include code that either uses a SAS supplied data set, such as SASHELP.CLASS, or a data step to create the  data set used by the procedure. Also any ODS Graphics options.

It might help to include something like this before and after proc sgplot and show us the LOG:

 

proc options option=linesize  ;
run;

 

 

BartG
Calcite | Level 5

Done. Updated above. Thanks.

SAS Innovate 2025: Call for Content

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!

Submit your idea!

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
  • 2 replies
  • 660 views
  • 0 likes
  • 2 in conversation