Chapter Contents

Previous

Next
COLREP

COLREP



Finds the color name associated with a color index

Operating States: SGOP
Return Codes: 0, 4, 86, 87


Syntax
Description
Argument Definitions
See Also


Syntax

CALL GASK('COLREP', color-index, color, return-code-variable);


Description

The GASK('COLREP', . . . ) routine returns the predefined SAS color name associated with a color index. GASK('COLREP', . . . ) searches for the current color assigned to a color index in the following order:

  1. the color selected by the GSET('COLREP', . . . ) function.

  2. the COLORS= graphics option. If color-index is 2, the routine returns the second color from the colors list of the COLORS= graphics option.

  3. the device's default colors list found in the device entry. If color-index is 2, the routine returns the second color from the default colors list.

See Predefined SAS Colors for a list of SAS predefined color names.


Argument Definitions

color-index numeric constant; indicates the color index for which you want to check the color. Valid values are 1 to 256, inclusive.
color character variable name; returns the color name associated with color-index.
return-code-variable numeric variable name; returns the return code of the routine call.

See Also

GASK('COLINDEX', . . . ) routine
GSET('COLREP', . . . ) function


Chapter Contents

Previous

Next

Top of Page

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