Chapter Contents |
Previous |
Next |
The GREPLAY Procedure |
Using the GREPLAY Windows |
There are five GREPLAY windows:
GREPLAY Procedure Windows shows how these windows relate to each other. Each window can be scrolled forward or backward as needed to display additional fields and information.
This
section briefly describes the GREPLAY windows;
for a complete description of each window and its fields, refer to the SAS
Help facility.
The PROC GREPLAY Window
The DIRECTORY Window
The TEMPLATE DESIGN Window
The COLOR MAPPING Window
If you are in the... | and you want to open the... | then... |
---|---|---|
PROC GREPLAY statement | PROC GREPLAY window | Submit the PROC GREPLAY statement without using the PRESENTATION or NOFS options. |
PRESENTATION window | Submit the PROC GREPLAY statement and include the PRESENTATION and IGOUT= options. | |
PROC GREPLAY window | PRESENTATION window | Specify a catalog and issue the PRES command. |
DIRECTORY window | Specify a template catalog and issue the TC command. OR Specify a color map catalog and issue the CC command. |
|
TEMPLATE DESIGN window | Specify a template catalog and issue the following command: edit template-name.template | |
COLOR MAPPING window | Specify a color map catalog and issue the following command: edit color-map-name.cmap | |
DIRECTORY window | TEMPLATE DESIGN window | Place an S beside the name of an existing template. OR Issue the following command: edit template-name.template |
COLOR MAPPING window | Place an S beside the name of an existing color map.
OR Issue the following command: edit color-map-name.cmap |
Managing Catalog Entries |
You can replay entries or perform a variety of catalog management tasks with GREPLAY code-based statements. Ways of Performing Common GREPLAY Procedure Tasks lists several common tasks and the statements that you use to perform them.
Task | Code-based Statement |
---|---|
copy graphics output (GRSEGs) from the input catalog to the output catalog* | COPY statement |
arrange GRSEG entries into logical groupings | GROUP statement |
reorder the entries | MOVE statement |
delete unneeded GRSEG entries | DELETE statement |
change entry names and descriptions of entries in the input catalog | MODIFY statement |
replay an entry from the input catalog | REPLAY statement |
replay an entry in a template panel | TREPLAY statement |
*You must assign an output catalog before copying graphics output. |
Replaying Catalog Entries |
For example, the following statements replay the GRSEG entry named GRAPH1 from the catalog MYLIB.GRAPHS, which is assigned with the IGOUT= option:
libname mylib 'SAS-data-library'; proc greplay igout=mylib.graphs nofs; replay graph1; run; quit;
If you do not specify an output catalog with the GOUT= option in the PROC statement of the SAS/GRAPH procedure that creates the graphics output, the graphics output is automatically stored in the WORK.GSEG catalog. Replay the graphics output that is stored in this catalog as follows:
proc greplay nofs; igout work.gseg; replay _all_; run; quit;
Creating Templates and Color Maps |
A color map is a list of up to 256 pairs of colors that enables you to change the colors in graphics output by mapping the original colors to a list of new colors. Color maps are useful for controlling how colors that are not available on the current device are remapped.
When you assign a current color map and replay graphics output that is stored in a catalog entry, any color in your graphics output that appears in the From column of the color map is mapped to the corresponding color in the To column of the color map. The new colors are not saved with the graphics output, and you do not create new graphics output when you use a color map to replay graphics output.
Task | In line mode |
---|---|
assign a color map catalog | CC statement |
copy a color map from another catalog | CCOPY statement |
define or modify a color map in the current catalog | CDEF statement |
assign a color map to use when you replay graphics output | CMAP statement |
delete unneeded entries | DELETE statement |
assign a template catalog | TC statement |
copy a template from another catalog | TCOPY statement |
delete a template | TDELETE statement |
define a template | TDEF statement |
display the panel outlines for a template | PREVIEW statement |
assign a template to use when you replay graphics output | TEMPLATE statement |
replay an entry in a template panel | TREPLAY statement |
tdef templt 1/def; preview templt;
cdef clrmap 1 / cyan : blue;
Replaying Graphics Output in a Template |
For example, the following statements replay the entries GRAPH1 and GRAPH2 into the V2 template, which is stored in the catalog SASHELP.TEMPLT. The TC statement specifies the catalog that contains the template, and the TEMPLATE statement specifies the template. The TREPLAY statement assigns each entry to a panel. (The V2 template has two panels, so there is an assignment for panel 1 and panel 2.)
proc greplay igout=mylib.graphs nofs; tc sashelp.templt; template v2; treplay 1:graph1 2:graph2; run;
Templates are often used to describe positioning for replaying graphics output from several catalog entries on a single display.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.