ods listing gpath = '/folders/myfolders/PLASMACOMPARIS/PLASMACOMPAPTEN/TREAT.png';
ods graphics /imagename="treat" imagefmt=png;
PROC SGPLOT DATA=STATD;
SERIES X=HR Y=MEAN_CONC/ GROUP=AGE
MARKERS
MARKERATTRS=(SIZE=10PX)
THICKRESP=MEAN_CONC;
yaxis label='Mean Concentration';
xaxis label ='Time (hrs)';
RUN;When I run this code the graph is produced but I can't output it to my drive. I get the following error:
Can some one tell me how to get around this problem and or how to change my code for getting a *.png file output?
I'm not sure but
'/folders/myfolders/PLASMACOMPARIS/PLASMACOMPAPTEN/TREAT.png';
is not a PATH but a File name.
Try to change to:
ods listing gpath = '/folders/myfolders/PLASMACOMPARIS/PLASMACOMPAPTEN';
you already defined file name and its format in line:
ods graphics /imagename="treat" imagefmt=png;
I'm not sure but
'/folders/myfolders/PLASMACOMPARIS/PLASMACOMPAPTEN/TREAT.png';
is not a PATH but a File name.
Try to change to:
ods listing gpath = '/folders/myfolders/PLASMACOMPARIS/PLASMACOMPAPTEN';
you already defined file name and its format in line:
ods graphics /imagename="treat" imagefmt=png;
Thanks for pointing out my mistake. Once I got rid of the file name in the path, it ran perfectly.
Thanks a lot for your help.
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.