Previous Page | Next Page

DATA Step Graphics Interface Dictionary

COLREP



Associates a color name with a certain color index
Operating States: SGOP
Return Codes: 0, 4, 86
Default Values: 1. color list of COLORS= graphics option; 2. device's default color list

Syntax
Description
Argument Definitions
See Also

Syntax

return-code-variable=GSET('COLREP', color-index, color);


Description

The GSET('COLREP', . . . ) function associates a predefined SAS color name with a color index. Many of the GASK routines and GSET functions use color-index as an argument.

If this function is not used, DSGI searches for a color specification in the following order:

  1. the nth color in the color list of the COLORS= graphics option

  2. the nth color in the device's default color list.


Argument Definitions

color-index

numeric constant or numeric variable name; a number from 1 to 256 that identifies a color.

color

character string enclosed in quotation marks or character variable name; a predefined SAS color name. See SAS Color Names and RGB Values in the SAS Registry for a list of predefined SAS color names.


See Also

COLORS= graphics option (see COLORS)

COLINDEX

COLREP

Previous Page | Next Page | Top of Page