Introduction to SAS/GRAPH Software |
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 your on-site SAS support personnel. 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 and Documentation. Select Help SAS Help and Documentation. On the Contents tab, select Learning to Use SAS Sample SAS Programs SAS/GRAPH Samples.
In other operating environments, the SAS Sample Library might be installed in your file system. If the SAS Sample Library has been installed at your site, ask your on-site SAS support personnel where it is located.
To access the sample programs through SAS Help and Documentation 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 the Help system, the sample programs are organized by product. Within each product category, most of the samples are sorted by procedure. Thus, to access the code for the first example in the GMAP procedure chapter, select Learning to Use SAS SAS/GRAPH Samples, scroll to GMAP Procedure, and select GMPSIMPL-Producing a Simple Block Map.
In your file system, the files that contain the sample code have filenames 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.
Procedure | Code |
---|---|
dsgi | DS |
ganno | AN |
gareabar | AB |
gbarline | BL |
gchart | CH |
gcontour | CT |
geocode | GE |
gfont | FO |
ginside | IN |
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 |
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 might automatically be assigned a libref. Ask your on-site SAS support personnel 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 might automatically be assigned a fileref. Ask your on-site SAS support personnel or system administrator where the Annotate macro data set is stored for your site.
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.