BookmarkSubscribeRSS Feed
Quartz | Level 8

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 ;




%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


ods pdf close ;


Thanks in advance for your resolutions.

Super User

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.



Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg



Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 2 in conversation