About the Sample Library

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 from the SAS Web site and paste it into the Program Editor in your SAS session.
These same programs are also included in the 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 Helpthen selectSAS Help and Documentation. On the Contents tab, select Learning to Use SASthen selectSample SAS Programsthen selectSAS/GRAPHthen selectSamples.
  • In other operating environments, the SAS Sample Library might be installed in your file system. Ask your on-site SAS support personnel where it is located on your system.
This document includes the names of each sample file (for example, GBLWTSTA or GCHBRMID). 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, Using Traditional Map Data to Produce a Simple Block Map, is stored in sample member GMPSIMPL.
  • In the SAS Sample Library, 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 SASthen selectSAS/GRAPHthen selectSamples, 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.
Product Codes for SAS/GRAPH Procedures
Procedure
Code
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
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