BookmarkSubscribeRSS Feed
Anita_n
Pyrite | Level 9

Dear all,

how do I out a graph as jpg 

I used this syntax but always get an output as png

ods graphics on / reset imagename="new file name" imagefmt =jpeg;
ods listing gpath = 'E\';
proc sgplot data=sashelp.class; 
  scatter x=weight y=height;
run;
1 REPLY 1
Ksharp
Super User

I got no problem.

 

ods listing gpath = 'c:\temp\a\';
ods graphics on / reset imagename="new file name" imagefmt =jpg;
proc sgplot data=sashelp.class; 
  scatter x=weight y=height;
run;

Ksharp_0-1700568132885.png

 

SAS Innovate 2025: Call for Content

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!

Submit your idea!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 382 views
  • 1 like
  • 2 in conversation