Chapter Contents |
Previous |
Next |
SAS/GRAPH Software: Reference |
You can use catalog entries to store graphics output that you want to display again without having to rerun the program. Use the GRAPH window, the GREPLAY procedure, or the SAS Explorer window to redisplay graphics output stored in catalog entries.
Unless you select another catalog, either temporary or permanent, SAS/GRAPH procedures always store a copy of your graph in the temporary catalog WORK.GSEG, regardless of the other forms of graphics output that you choose. By default, each graph is appended to the catalog. The graphs in WORK.GSEG are erased when you end the SAS session.
Accessing Catalogs from Different Versions of SAS |
For more information, see Transporting Catalogs across Operating Environments.
All Version 7 and Version 8 applications that support catalog entries that also existed in Version 6 should be able to transparently read those Version 6 catalog entries. That is, if a Version 7 or Version 8 user specifies the SASEB (Version 6 compatibility) engine on the LIBNAME statement, the application should be able to read and process any Version 6 data that the SASEB engine may return.
The Version 7 and Version 8 compatibility engines also support write access to Version 6 catalogs.
Creating and Specifying Catalogs |
PROC procedure-name GOUT=<libref.> catalog-name; |
For a temporary catalog, specify the name of the catalog and omit the libref. (This is a one-level name.) The temporary catalog is stored in the WORK library and erased when you end the SAS session.
For a permanent catalog, specify both a libref and a catalog name. (This is a two-level name.) Libref must already be assigned to a SAS data library that contains or will contain the catalog. For more information on assigning a libref, see LIBNAME Statement.
When you run the procedure, the output is automatically appended to the end of the specified catalog. If the procedure produces multiple graphics, then multiple entries are added to the catalog.
If you want a catalog entry to replace all of the existing entries in the catalog, you can use the following statement:
goptions goutmode=replace;
Names and Descriptions of Catalog Entries |
By default, SAS/GRAPH appends each new entry to the catalog. If you create more than one graph with a procedure during a SAS session and the graphs are stored in the same catalog, SAS/GRAPH software adds a number to the end of the name of subsequent catalog entries. This number makes the names unique within the catalog. For example, if you create three graphs with the GCHART procedure during the same SAS session, the catalog entries are named GCHART, GCHART1, and GCHART2. SAS/GRAPH software uses this naming convention whether catalog entries are being stored in a temporary or permanent catalog.
You can supply a name and description when you create the graph by using the NAME= and DESCRIPTION= options. If you create more than one graph of the same name, SAS/GRAPH software increments the specified name just as it does the default names.
Listing and Managing Catalog Entries |
CAT libref.catalog-name |
To open the PROC GREPLAY window, submit the PROC GREPLAY statement with or without a catalog specification. For details, see The GREPLAY Procedure.
Either method lets you view individual entries once you have displayed the list. For more information, see Displaying Graphics Output on Monitors or Terminals.
There are several ways to manage catalogs and catalog entries:
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.