I am trying to save ouput from proc sgrender as a png file with specified filename. I can get SAS to save it with generic filenames like SGRENDER17.png using
ods html gpath='..';
but cannot get anything out of
filename grafout "c:\dropbox\FIG1A.png";
goptions reset=all gsfname=grafout gsfmode=replace device=png;
proc sgrender data=GRM template=GRM;
run;
filename grafout clear;what am I doing wrong ?
Instead of GOPTIONS, use the ODS GRAPHICS statement:
ods graphics / reset outputfmt=png imagename="MyName";
Instead of GOPTIONS, use the ODS GRAPHICS statement:
ods graphics / reset outputfmt=png imagename="MyName";
where would the file then be located? Can't find it anywhere
It gets written to your GPATH or PATH (if GPATH not specified).
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 save with the early bird rate—just $795!
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.
Ready to level-up your skills? Choose your own adventure.