Previous Page | Next Page

The GREPLAY Procedure

Concepts


Catalog Entries

The GREPLAY procedure can perform actions on three types of catalog entries:

GRSEG entries

store output from SAS/GRAPH procedures. The GREPLAY procedure uses two types of graphics catalogs: the input-catalog and the output-catalog. The input-catalog is the catalog that contains the graphics output that you want to replay. The output-catalog is the catalog in which graphics output that is produced by the template facility is stored. Both of these catalogs are GSEG catalogs. The same GSEG catalog can be used as the input-catalog and the output-catalog.

TEMPLATE entries

store templates created with the GREPLAY procedure. The catalog in which template entries are stored is referred to as the template catalog. SAS provides sample templates in SASHELP.TEMPLT. TEMPLATE entries can also be stored in GSEG catalogs.

You can use templates directly from SASHELP.TEMPLT to replay your graphics output, or you can copy these templates to a different catalog and edit the copied entries. Graphics output replayed using a template creates a new GRSEG entry.

CMAP entries

store color maps created with the GREPLAY procedure. The catalog in which color map entries are stored is referred to as the color map catalog. CMAP entries can be stored in GSEG catalogs. They can also be stored in other catalogs. You can copy, edit, or use these color maps to replay your graphics output. Graphics output replayed using a color map does not create a GRSEG entry.

You can store all of the previous entry types in a single SAS catalog, or you can store them in separate catalogs and use a different catalog for each type of entry. A single SAS catalog may contain graphics output, color maps, and templates.

Because the GREPLAY procedure operates on catalog entries, you must assign at least one catalog before you perform any tasks. The GREPLAY procedure has several ways to assign catalogs shown in Assigning Catalogs.

Assigning Catalogs
Catalog How to Assign
input IGOUT= option in the PROC GREPLAY statement

IGOUT statement

IGOUT field in the PROC GREPLAY window

output GOUT= option in the PROC GREPLAY statement

GOUT statement

GOUT field in the PROC GREPLAY window

template TC= option in the PROC GREPLAY statement

TC statement

TC field in the PROC GREPLAY window

color map CC= option in the PROC GREPLAY statement

CC statement

CC field in the PROC GREPLAY window

Note:   Image entries can exist in catalogs, but are not recognized by the GREPLAY procedure.  [cautionend]


Displaying the List of Templates Provided By SAS/GRAPH

To write the list of templates stored in SASHELP.TEMPLT to the SAS log, submit the following code:

proc greplay nofs
tc=sashelp.templt;
   list tc;
run;


Duplicate Entry Names

The GREPLAY procedure uses the following naming conventions to prevent duplication of names, or overwriting entries:

Note:   The GREPLAY procedure uses the same naming conventions for entries created by the template facility.  [cautionend]

Note:   See also About Filename Indexing.  [cautionend]


Ways to Use the GREPLAY Procedure

You can view, replay or manage catalog entries in two ways:

If you are in the SAS windowing environment, you can toggle between the windows and code-based statements while you run the GREPLAY procedure.

For more information, see the FS Statement and the NOFS option.


Sizing and Naming Your Graphs for Replay (Best Practice)

To replay your graphics output using the GREPLAY procedure, it is recommended that you do the following:

Previous Page | Next Page | Top of Page