BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
davidvalentine
Obsidian | Level 7

Hello Beautiful People!

 

I'm using Proc SGPLOT to plot the end results of Proc X11.  What I would like to do is specify an output file for my graph, but I'm not seeing an Output statement or anything of the sort that will allow me to save my graph to a file to then be exported.  Here's an example:

 

/*Plot of D10 - the Final Seasonal Factors*/
Title "Monthly Seasonal Factors"; 
proc sgplot data=work.dummytest;
   series x=Month y=d10 / markers markerattrs=(symbol=CircleFilled) ;
run;

Can this be done with Proc SGPLOT?  Any information is greatly appreciated; thanks!

 

-Valentine

1 ACCEPTED SOLUTION

Accepted Solutions
PeterClemmensen
Tourmaline | Level 20

Use ODS PDF like this

 

ods pdf file='path\plot.pdf';
proc sgplot data=sashelp.class;
   scatter x=height y=weight;
run;
ods pdf close;

View solution in original post

4 REPLIES 4
ed_sas_member
Meteorite | Level 14

Hi @davidvalentine 

 

You can use the ODS HTML to generate the desired file.

 

Best,

 

PeterClemmensen
Tourmaline | Level 20

Use ODS PDF like this

 

ods pdf file='path\plot.pdf';
proc sgplot data=sashelp.class;
   scatter x=height y=weight;
run;
ods pdf close;
davidvalentine
Obsidian | Level 7

Thank you draycut; this is just what I was looking for!

SuryaKiran
Meteorite | Level 14

Hello,

 

In SAS EG you can send the output to word, excel, powerpoint by point & click.  Also in Base SAS you can just use save. If your prefer point & click features instead of coding. 

 

 

graph.pnggraph2.png

Thanks,
Suryakiran

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 504 views
  • 3 likes
  • 4 in conversation