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
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;
Done. Updated above. Thanks.
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.