BookmarkSubscribeRSS Feed
SanjayAhir
Obsidian | Level 7

Can i create multiple pages in PNG format file. I want to create per page graph in PNG format.

4 REPLIES 4
ballardw
Super User

 

PNG are image files and as such do not have a concept "pages". The image can contain multiple individual SAS graphs depending on how they are made but you would have to share a lot more detail about what you have and what you are attempting.

SanjayAhir
Obsidian | Level 7
I already have created multiple graph in one png page. But I want to know
is it possible to have multiple pages in png format.?
GraphGuy
Meteorite | Level 14

I'm not 100% sure what you're asking, but here's one way to use 1 proc sgplot, and produce multiple graphs (with each graph being in a separate png file - one for each value of the 'by' variable)...

 

proc sort data=sashelp.class out=my_data;
by sex;
run;

 

proc sgplot data=my_data;
by sex;
scatter y=height x=weight;
run;

 

SanjayAhir
Obsidian | Level 7

Hi,

 

I am asking to create multiple page in PNG file. Like we create multiple graphs in PDF file based on by group. I have 3 graph. I want to place each graph on separate pages in PNG file.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1215 views
  • 0 likes
  • 3 in conversation