The SAS Output Delivery System and reporting techniques

separate table & graph on one page???

Reply
Regular Contributor
Regular Contributor
Posts: 170

separate table & graph on one page???

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
SAS Super FREQ
Posts: 8,868

Re: separate table & graph on one page???

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
Ask a Question
Discussion stats
  • 1 reply
  • 97 views
  • 0 likes
  • 2 in conversation