SAS 9.2 is being used. I am attempting to place a gplot graph within a PDF using ODS. This is a pre-existing ODS with several proc reports laid out within. Sadly, it is not as easy as simply placing another ODS PDF startpage and pasting the proc gplot into the body of code. The graph works on its own and outputs to PDF fine on a single page, but when placing it within the larger ODS code it comes up blank. The PDF output displays all the proc reports fine, but a blank page is inserted where the gplot was placed in the code. The results window also shows the graph without error. The code is as follows: *Set pdf options here; options missing =' ' nodate nonumber orientation=portrait center leftmargin =0in rightmargin =0in topmargin =0.5in bottommargin =0in ; goptions ftext='Arial' htext=2 gunit=pct ctext=black csymbol=blue DEVICE=PDFC; symbol1 i =sms value=none c=black w =1 l=3; symbol2 i =join value=circle c=red w =2; symbol3 i =join value=dot c =blue w =2; axis1 label=(angle=90 h=1 'label1') order=(0 to 90 by 10) minor=(n=5); axis2 label=none order=(0 to 160 by 13) value=(tick=1 h=1 '3/2011' tick=2 h=1 '6/2011' tick=3 h=1 '9/2011' tick=4 h=1 '12/2011' tick=5 h=1 '3/2012' tick=6 h=1 '6/2012' tick=7 h=1 '9/2012' tick=8 h=1 '12/2012' tick=9 h=1 '3/2013' tick=10 h=1 '6/2013' tick=11 h=1 '9/2013' tick=12 h=1 '12/2013' tick=13 h=1 '3/2014') minor=(n=12) offset=(2,2) ; * Open ODS and set up PDF document path; ods pdf (ID=Cdrive) file="C:\temp.pdf" notoc style=style.Print startpage=no; *Set the escape character here for use throughout the program; ods escapechar = '^'; title H=5 "Title1"; title3 H=4 "title2"; footnote1 h=8pt j=l "%sysfunc(today(),mmddyy10.)" j=r " page ^{thispage} of ^{lastpage}"; proc report data=data1 nowd; column var1 var2 var3; define var1 / display; define blank / " " center format=NoDot. style=[cellwidth=10mm]; define var2 / display; define var3 / display; run; ods pdf (ID=Ldrive) text='^{newline 6}'; ods pdf (ID=Ldrive) text = '^S={just=center font=("Arial, Helvetica, Helv",4)}Next report, same page'; proc report data=data2 nowd; column var1 var2 var3; define var1 / display; define blank / " " center format=NoDot. style=[cellwidth=10mm]; define var2 / display; define var3 / display; run; ods pdf (ID=Ldrive) text='^{newline 6}'; ods pdf (ID=Ldrive) text = '^S={just=center font=("Arial, Helvetica, Helv",4)}Third report, same page'; proc report data=data3 nowd; column var1 var2 var3; define var1 / display; define blank / " " center format=NoDot. style=[cellwidth=10mm]; define var2 / display; define var3 / display; run; * Start the PDF page with this report here; ods pdf (ID=Ldrive) startpage=yes; title H=3pt "Graph title1"; title2 H=2pt "Graph title2"; proc gplot data=gplottbl; plot ttlcnt*week (totPenn totLvll)*week /overlay haxis=axis2 vaxis=axis1 ANNOTATE=my_labels ; run; quit; * Start the PDF page with this report here; ods pdf (ID=Ldrive) style=style.Online startpage=yes; title H=5 "title1"; title3 H=5 "title2"; proc report data=data4 nowd; column var1 var2 var3; define var1 / display; define blank / " " center format=NoDot. style=[cellwidth=10mm]; define var2 / display; define var3 / display; run; ods pdf (ID=Ldrive) close; goptions reset=all; ods listing; This is an abbreviated version of the program and the data/labels/titles have been renamed, but this is it. I have attempted resetting and not using goptions, I have tried placing the gplot at the beginning and end and elsewhere in the report, dropped all the titles, removed the footnote to the PDF (which is another question entirely), but I am obviously missing something. The log file brings up these issues: While I did attempt to adjust both HSIZE and VSIZE, I continually get this resizing warning that is always 1 inch shorter no matter what size I set each value. I have a feeling I am missing something simple here, and my SAS programming skills are not superior by any stretch... but this is leaving me frustrated. Thanks for taking a look.
... View more