DSM Template Services Manual
Template Language
DSM Template Services Manual—427187-004
3-16
Template Definition (MSG) Statement
Template Definition (MSG) Statement
One MSG statement can contain the source information for both a format template and
an override template.
Example 3-8 shows value substitution (<1>, <2>, and <3>) and conversion requests
(the ZI2 following ZEMS-TKN-NEWPROCESS-CPU and the letter O following ZEMS-
TKN-NEWPROCESS-PRIORITY). ZI2 and O are edit codes. See Edit Codes on
page 3-23.
If NEWPROCESS-CPU is 9 and NEWPROCESS-PRIORITY is decimal 140, the
format template derived from Example 3-8 leads to the display text in Example 3-9.
The CPU number has a single leading zero, reflecting edit code ZI2, and PRIORITY is
in octal, reflecting edit code O.
Syntax of the MSG Statement
token-name
is a token name: ZEMS-TKN-EVENTNUMBER for main templates. For more
information, see Template Keys on page 3-18
token-value
is a constant, a DDL constant (such as ZEMS-EVT-BACKUP-CREATED), token
code, token map, or a level-89 name qualified by the DEF of type ENUM that
defines it.
Example 3-8. A Sample MSG Statement
==
== Sample MSG Statement
==
MSG: ZEMS-TKN-EVENTNUMBER, ZEMS-EVT-BACKUP-CREATED
OVERRIDE ZEMS-TKN-EMPHASIS ZSPI-VAL-TRUE
"EMS: Created backup in CPU <1>,"
" priority <2>, program file <3>"
1: ZEMS-TKN-NEWPROCESS-CPU, ZI2
2: ZEMS-TKN-NEWPROCESS-PRIORITY, O
3: ZEMS-TKN-PROGRAMFILE
Example 3-9. BACKUP-CREATED With ZI and O Edit Codes
EMS: Created backup in CPU 09, priority 214,
program file $SYSTEM.SYSTEM.EMSCOL
MSG: token-name, token-value [ RESIDENT ]
[ override-option [, override-option ] ... ]
[ " template-string " ...
[ edit-descriptor ] ...
]