Previous Page | Next Page

The GREPLAY Procedure

Example 1: Creating a Template


Procedure features:

GREPLAY statement options:

NOFS

TC= option

TDEF statement

TEMPLATE statement

Sample library member: GRECRTM1

This example creates a template with five panels. Four panels are small and equal in size. The fifth panel is a larger, full-size panel that can be used to display a common title or footnote for the entire template. In this example, the LIST statement displays the template contents in the SAS log. Defining a Template shows the template definition written to the SAS log file. The template defined here is also used in Replaying GSLIDE Procedure Output in a Template.

 Note about code
goptions reset=all border;
 Note about code
proc greplay tc=work.tempcat nofs;
 Note about code
tdef newtemp des="Five panel template"
Panel 1: Lower Left Quadrant
     1/llx=0   lly=10
       ulx=0   uly=50
       urx=50  ury=50
       lrx=50  lry=10
       color=navy
Panel 2: Upper Left Quadrant
     2/llx=0   lly=50
       ulx=0   uly=90
       urx=50  ury=90
       lrx=50  lry=50
       color=lime
Panel 3: Upper Right Quadrant
     3/llx=50 lly=50
       ulx=50 uly=90
       urx=100 ury=90
       lrx=100 lry=50
       color=yellow
Panel 4: Lower Right Quadrant
     4/llx=50 lly=10
       ulx=50 uly=50
       urx=100 ury=50
       lrx=100 lry=10
       color=cyan
Panel 5: Container for Title and Panels 1-4
     5/llx=0 lly=0
        ulx=0 uly=100
        urx=100 ury=100
        lrx=100 lry=0
        color=lipk;
 Note about code
template newtemp;
 Note about code
 list template;
 quit;

Defining a Template

.
.
.

64        /* list template contents */
65      list template;

 NEWTEMP       Five panel template

 Pan Clp Color      Ll-x  Ll-y  Ul-x  Ul-y  Ur-x  Ur-y  Lr-x  Lr-y

  1    NAVY        0.0  10.0   0.0  50.0  50.0  50.0  10.0
  2    LIME       0.0  50.0   0.0  90.0  50.0  90.0  50.0  50.0
  3    YELLOW      50.0  50.0  50.0  90.0 100.0  90.0 100.0  50.0
  4    CYAN       50.0  10.0  50.0  50.0 100.0  50.0 100.0  10.0
  5    LIPK        0.0   0.0   0.0 100.0 100.0 100.0 100.0   0.0

66   quit;
.
.
.

Previous Page | Next Page | Top of Page