Hi ,
I have generated graph using proc gplot and proc greplay and generated common titles and footnote using gslide, everything went well, but only issue is when the code is executed the first page is generated with only with titles and footnotes and on the second page all the four graphs fit into a single page with common titles and footnotes. The titles are extracted using excel sheet and after that proc gslide is run .The concern is with the first blank page with only titles and footnotes, How to control the proc glside with out displaying the first blank page . The report is generated in PDF. How to delete this blank page .
Below is the sample code ;
*for 4 graphs
proc gplot ;
.....
run;
%macro for extracting the titles and footnotes;
proc gslide gout=work.grph_cat name="gslide";
ods pdf file ="&path.pdf;
proc greplay tc=work.grphcat nofs ;
/*4 GRAPHS -- with background slide for title and footnote*/
tdef graph4
/*Top left*/
1/llx=0 lly=50 ulx=0 uly=93
urx=49 ury=93 lrx=49 lry=50
/*Top right*/
2/llx=51 lly=50 ulx=51 uly=93
urx=100 ury=93 lrx=100 lry=50
/*Bottom left*/
3/llx=0 lly=6 ulx=0 uly=49
urx=49 ury=49 lrx=49 lry=6
/*Bottom right*/
4/llx=51 lly=6 ulx=51 uly=49
urx=100 ury=49 lrx=100 lry=6
/*title and footer)*/
5/llx=0 lly=0 ulx=0 uly=100
urx=100 ury=100 lrx=100 lry=0
;
run;
ods pdf close ;
Thanks in advance for your resolutions.
tdef only creates the template. You need a TREPLAY to use the defined template.
You may need to supply a lot more information about the name of the graph file you are replaying from gslide and such.
Or possibly wander into the area of PDF layout and SGgraphics instead of device based graphics.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.