Where to find/locate code for %_sas_popchartsize and %_sas_pushchartsize macro?
( One can find the code for %_EG_CONDITIONAL_DROPDS at support.sas.com\kb\38\454.html )
If you select File->Export->Export All Code in Project, the result *should* include all source code for any macros that your project tasks reference.
Chris
Chris,
I tired that. I don't see any source code for either %_EG_CONDITIONAL_DROPDS or %_SAS_POPCHARTSIZE.
Okay, here it is:
/* save the current settings of XPIXELS and YPIXELS */
/* so that they can be restored later */
%macro _sas_pushchartsize(new_xsize, new_ysize);
%global _savedxpixels _savedypixels;
options nonotes;
proc sql noprint;
select setting into :_savedxpixels
from sashelp.vgopt
where optname eq "XPIXELS";
select setting into :_savedypixels
from sashelp.vgopt
where optname eq "YPIXELS";
quit;
options notes;
GOPTIONS XPIXELS=&new_xsize YPIXELS=&new_ysize;
%mend;
/* restore the previous values for XPIXELS and YPIXELS */
%macro _sas_popchartsize;
%if %symexist(_savedxpixels) %then %do;
GOPTIONS XPIXELS=&_savedxpixels YPIXELS=&_savedypixels;
%symdel _savedxpixels / nowarn;
%symdel _savedypixels / nowarn;
%end;
%mend;
Thanks Chris. This is what I was looking for.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Check out this tutorial series to learn how to build your own steps in SAS Studio.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.