Chapter Contents

Previous

Next
The GANNO Procedure

Example 3: Using the NAME= Option to Produce Multiple Graphs


Procedure features:
PROC GANNO statement option:
NAME=
Data set: REFLIB.SQUARES
Sample library member: GR12N03

In this example, the GANNO procedure uses the NAME= option to generate multiple graphs from one Annotate data set. Since NAME= is assigned the variable COLOR, the GANNO procedure generates separate graphics output for each value of the COLOR, as shown in Output for COLOR Value BLUE (REFLIB.EXCAT.BLUE.GRSEG), Output for COLOR Value GRAY (REFLIB.EXCAT.GRAY.GRSEG), Output for COLOR Value BLUE (REFLIB.EXCAT.BLUE.GRSEG) and Output for COLOR Value GREEN (REFLIB.EXCAT.GREEN.GRSEG).

Each output is stored as a separate entry in the output catalog REFLIB.EXCAT. The entries are named according to the values of COLOR: BLUE, GRAY, GREEN, and RED. Note that the output for GRAY includes the footnote shown in Storing Annotate Graphics. The output for RED shows the frame that is generated by the Annotate data set. The black borders in the other outputs are not generated by the code.
 Note about code
libname reflib 'SAS-data-library';
goptions reset=global gunit=pct cback=white
   colors=(black blue green red);
 Note about code
proc ganno annotate=reflib.squares
           name=color
           gout=reflib.excat
           description='Individual squares';
run;

Output for COLOR Value BLUE (REFLIB.EXCAT.BLUE.GRSEG)

[IMAGE]

Output for COLOR Value GRAY (REFLIB.EXCAT.GRAY.GRSEG)

[IMAGE]

Output for COLOR Value GREEN (REFLIB.EXCAT.GREEN.GRSEG)

[IMAGE]

Output for COLOR Value RED (REFLIB.EXCAT.RED.GRSEG)

[IMAGE]


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.