SAS Institute. The Power to Know

SAS/GRAPH(R) 9.2 Reference

Previous Page | Next Page

Introduction to SAS/GRAPH Software

Information You Should Know

This section outlines information you should know before you attempt to run the examples in this document.


Support Personnel

Most sites have personnel available to help users learn to run SAS System. Record the name of the SAS Software Consultant, SAS Software Representative, and system administrator at your site. Also, record the names of anyone else you regularly turn to for help with running SAS/GRAPH.


Sample Programs

The documentation for each procedure, for global statements, and for features such as the Annotate facility provide examples that demonstrate these features of SAS/GRAPH. You can copy the example code from the help or the OnlineDoc and paste it into the Program Editor in your SAS session.

These same programs are included in the sample library SAS Sample Library. How you access the code in the sample library depends on how it is installed at your site.

  • In most operating environments, you can access the sample code through the SAS Help facility. Select Help [arrow] SAS Help and Documentation. On the Contents tab, select Learning to Use SAS [arrow] Sample SAS Programs [arrow] SAS/GRAPH [arrow] Samples.

  • In other operating environments, the SAS Sample Library may have been installed in your file system. If the SAS Sample Library has been installed at your site, ask your SAS Software Consultant where it is located.

To access the sample programs through SAS System Help or through your file system, you must understand the naming convention used for the samples. The naming convention for SAS/GRAPH samples is Gpcxxxxx, where pc is the product code and xxxxx is an abbreviation of the example title. The product code can be a code for a procedure, a statement, or in the case of Java and ActiveX examples, WB for "web graphs." For example, the code for the first example in the GMAP Procedure chapter, Producing a Simple Block Map, is stored in sample member GMPSIMPL. The sample-library member name is sometimes displayed as a footnote in the output's lower-right corner.

  • In SAS System Help, the sample programs are organized by product. Within each product category, the samples are sorted alphabetically by title. Thus, to access the code for the first example in the GMAP Procedure chapter, navigate in the help system to the SAS Sample Library page, choose SAS/GRAPH from the list of products, and then scroll to the listing "GMPSIMPL-Producing a Simple Block Map."

  • In your file system, the files that contain the sample code have file names that match the sample member names. For example, in a directory-based system, the code for sample member GMPSIMPL is located in a file named GMPSIMPL.SAS.

Note:   For Java and ActiveX (web graph) samples, the naming convention is GWBxxxxx.  [cautionend]

Product Codes for SAS/Graph Proceedures
Procedure Code
dsgi DS
ganno AN
gareabar AB
gbarline BL
gchart CH
gcontour CT
geocode GE
gfont FO
gimport IP
ginside IN
gkeymap KY
gkpi KP
gmap MP
goptions OP
gplot PL
gproject PJ
gradar RR
greduce RD
gremove RM
greplay RE
gslide SL
gtile TL
g3d TD
g3grid TG

Product Codes for SAS/Graph Statements
Statement Code
axis AX
by BY
footnote FO
goptions ON
legend LG
note NO
pattern PN
symbol SY
title TI


Map Data Sets

To run the examples that draw maps, you need to know where the map data sets are stored on your system. Depending on your installation, the map data set may automatically be assigned a libref. Ask your SAS Software Consultant or system administrator where the map data sets are stored for your site.


Annotate Macros Data Set

To run the examples using Annotate macros, you need to know where the Annotate macro data set is stored on your system. Depending on your installation, the Annotate macro data set may automatically be assigned a fileref. Ask your SAS Software Consultant or system administrator where the Annotate macro data set is stored for your site.

Previous Page | Next Page | Top of Page