BookmarkSubscribeRSS Feed
data_null__
Jade | Level 19

Can I create output from PROC REPORT as an image (PNG).  I want to annotate a figure (SGPLOT) with a small table of statistics, using IMAGE function seems like an easy way, but I also don't want to create the image file by hand.  I don't think INSET or AXISTABLE are suitable that's why I think IMAGE would be nice.

 

2 REPLIES 2
djrisks
Barite | Level 11

i,

Hi, looking at old SAS community posts, I do not believe that is possible. However, I believe that you could use the XAXISTABLE and YAXISTABLE statements in SGPLOT to produce the report that you want. If you have an example, I could help. You said that you will annotate in SGPLOT too, so it could be better to start from there aswell.

Otherwise, you could take a snippet or screenshot of the report and then save that, and then use that image with SGPLOT.

JeffMeyers
Barite | Level 11
I believe if you put your proc report into the ods printer destination you can save the output to a png. Use options papersize as well to help control the size.

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
  • 2 replies
  • 1460 views
  • 0 likes
  • 3 in conversation