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.

sas-innovate-white.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.

 

Early bird rate extended! Save $200 when you sign up by March 31.

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
  • 1185 views
  • 0 likes
  • 3 in conversation