BookmarkSubscribeRSS Feed
_LB
Fluorite | Level 6 _LB
Fluorite | Level 6
Hello all;
I am trying to accomplish two things:
create a table with an underlying (line) graph that accompanies the table to output to PDF through PROC Report. However, the graph & table come from different sources.

Currently, this works except that the graph prints to another page, and way too big. I have attempted to solve this by ysuing the ODS graphics on/width= height= but this has no effect.

So essentially I have my proc report statements:

ODS LISTING CLOSE;
...
Proc Report data=x;
...
endcomp

symbol1 v=dot i=join;
proc gplot data=BASIC_OUTPUT;

where UNIT='y' and date>monthyear;
plot crbsi_rate*moi;
run;
quit;


Second question is that when the graph prints, it does not adhere to the ODS escape character and so the graphic does not print accordingly.

Thank you again for your help...
Lawrence
1 REPLY 1
Cynthia_sas
Diamond | Level 26
Hi:
I haven't had a chance to look at this in any detail, however, ODS ESCAPECHAR functionality is not supported by SAS/Graph procedures.
http://support.sas.com/forums/thread.jspa?messageID=5390ᔎ

Otherwise, generally with ODS PDF startpage=never will allow a table and graph to co-exist on a page in a PDF file. Although you may need some techniques to size (XPIXEL and YPIXEL) and position (HORIGIN and VORIGIN) the graph output on the page as described in this Tech Support paper:
PDF: http://support.sas.com/techsup/technote/ts659/ts659.pdf

If you are still having issues with your code, you may want to contact Tech Support, where they can look at ALL your code to see what's happening and can help you fix it.

cynthia

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
  • 1 reply
  • 914 views
  • 0 likes
  • 2 in conversation