Question & Answer
Question
Can you provide an example of using shadow variables in an ISPF panel.
Answer
Shadow variables are used to do character-level attributes, that is, to set color, highlighting, and so on at a character level rather than a field level. Here's an example:
The exec
/* REXX */
dyntext = '^These words contain character attributes: mixed up'
dyncolor = ' $#.#.#$#'
Address ISPEXEC "DISPLAY PANEL(TEST5)"
The panel:
)ATTR
* AREA(DYNAMIC)
$ TYPE(CHAR) HILITE(REVERSE) COLOR(YELLOW)
. TYPE(CHAR) COLOR(RED)
# TYPE(CHAR) COLOR(BLUE) HILITE(USCORE
^ TYPE(DATAOUT) INTENS(LOW) COLOR(WHITE)
)BODY
%-------------------SHADOW VARIABLE SAMPLE-------------------------
%COMMAND ===>_ZCMD +
+
*DYNTEXT,DYNCOLOR *
)END
[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSBLLD","label":"ISPF for z\/OS"},"Platform":[{"code":"PF035","label":"z\/OS"}],"Component":"","Version":"","Line of Business":{"code":"","label":""}}]
Was this topic helpful?
Document Information
Modified date:
04 January 2017
UID
dwa1307693