Previous Page | Next Page

The GREPLAY Procedure

Example 4: Creating a Color Map


Procedure features:

GREPLAY statement options:

CC= option

GOUT= option

CDEF statement

CMAP statement

LIST statement

Sample library member: GRECRCM1

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 SAS log. Defining a Color Map (GRECRCM1) shows a partial SAS log listing.

 Note about code
goptions reset=all border;
 Note about code
proc greplay cc=clrmap gout=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 (GRECRCM1)

 .
 .
 75        /* list  color map contents */
 76     list cmap;

  MYCOLOR       Special Color Map

        FROM        TO

   1    PINK        RED
   2    CYAN        BLUE
   3    LIG         GREEN

 77  quit;
 .

Previous Page | Next Page | Top of Page