Chapter Contents

Previous

Next
The GREPLAY Procedure

Example 3: Creating a Color Map


Procedure features:
GREPLAY statement option:
CC=
GOUT=
CDEF statement
CMAP statement
LIST statement
Sample library member: GR26N03

This example uses the CDEF statement to define a color map. The LIST statement is used in this example to display the color map definition in the log. Defining a Color Map (GR26N03) shows a partial listing of the log.
 Note about code
libname reflib 'SAS-data-library';
goptions reset=global gunit=pct border cback=white
         colors=(black blue green red)
         ftext=swissb htitle=6 htext=3;
 Note about code
proc greplay cc=reflib.clrmap gout=reflib.excat nofs;
 Note about code
   cdef mycolor des='Special Color Map'
        1 / pink  : red
        2 / cyan  : blue
        3 / lig   : green;
 Note about code
   cmap mycolor;
   list cmap;
quit;

Defining a Color Map (GR26N03)
 .
 .
 75        /* list the contents of the color map */
 76     list cmap;

  MYCOLOR       Special Color Map

        FROM        TO

   1    PINK        RED
   2    CYAN        BLUE
   3    LIG         GREEN

 77  quit;
 .


Chapter Contents

Previous

Next

Top of Page

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