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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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