DSM Template Services Manual
Template Language
DSM Template Services Manual—427187-004
3-2
Template Source File
Template Source File
A template source file includes Template Language statements for a single application.
Example 3-3 shows a template source file with formatting directions for the EMS event
message ZEMS-EVT-BACKUP-CREATED (which is described in the
EMS Manual
).
•
The three lines that begin with equal signs (==) are comments.
•
The next three lines are VERSION, SSID, and SSNAME statements, which provide
information that applies to the entire file.
•
The remaining lines contain an MSG (template definition) statement. Typically,
there are many such statements.
This MSG statement causes the creation of a format template for the BACKUP-
CREATED event message.
The format template generated from Example 3-3 helps produce display text like that in
Example 3-4.
This display text is similar to the quoted strings of Example 3-3, but the edit markers
(<1>, <2>, and <3>) are replaced by token values: values of the ZEMS-TKN-
NEWPROCESS-CPU, ZEMS-TKN-NEWPROCESS-PRIORITY, and ZEMS-TKN-
Example 3-2. Components of an MSG Statement That Overrides a Token’s Value
Example 3-3. Template Source Statements for BACKUP-CREATED
==
== Sample file
==
VERSION: "Mini EMS - 8 April 1989"
SSID: ZEMS-VAL-SSID
SSNAME: "EMS"
MSG: ZEMS-TKN-EVENTNUMBER, ZEMS-EVT-BACKUP-CREATED
"EMS: Created backup in CPU <1>,"
" priority <2>, program file <3>"
1: ZEMS-TKN-NEWPROCESS-CPU
2: ZEMS-TKN-NEWPROCESS-PRIORITY
3: ZEMS-TKN-PROGRAMFILE
Example 3-4. Display Text for BACKUP-CREATED
EMS: Created backup in CPU 9, priority 140,
program file $SYSTEM.SYSTEM.EMSDIST
MSG: ZEMS-TKN-EVENTNUMBER, ZEMS-EVT-DEVTYPE
OVERRIDE ZEMS-TKN-EMPHASIS ZSPI-VAL-TRUE
token valuetoken name
MSG statement
OVERRIDE option
VST008.vsd
token valuetoken name