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
HelpSAS Help
and Documentation. On the
Contents tab,
select
Learning to Use SASSample SAS ProgramsSAS/GRAPHSamples.
-
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 G
pcxxxxx,
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 SASSAS/GRAPHSamples, 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 GWB
xxxxx.
Product Codes for SAS/GRAPH
Procedures
Product Codes for SAS/GRAPH
Statements