The OPSCOLOR function returns a numeric value and this value is moved into the MSG.COLOR variable while a message rule executes. The color of this message is in the OPSLOG Browse display. Also the OPSCOLOR function returns the color value in text from a single integer or one-byte hexadecimal value argument.
Note: Use the OPSCOLOR function in OPS/REXX or AOF rules. OPSCOLOR is especially useful in AOF rules for changing the color of a message as it appears in OPSLOG Browse.
OPSCOLR has the following format:
var = OPSCOLOR('color'| 0-9 | ‘00’x-‘09’x )
Specifies a valid color. Valid colors are NONE, BLUE, WHITE, YELLOW, GREEN, RED, PINK, and TURQ.
Example: OPSCOLOR Function
The following example sets a message color (in an MSG rule) to turquoise.
)MSG somemsg
)PROC
MSG.COLOR = OPSCOLOR('TURQ')
The following examples decode the integer or hexadecimal value color codes.
colorname=OPSCOLOR(msg.color) returns 'RED'
colorname=OPSCOLOR(‘03’x) returns 'RED'
colorname=OPSCOLOR(3) returns 'RED'
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|