DSM Template Services Manual

DSM Template Services Manual427187-004
3-1
3 Template Language
This section describes the use and syntax of the Template Language:
For more information on the place of the Template Language within DSM Template
Services, see Section 1, Introduction. For information on compilation, see Section 4,
Template Compiler.
The Template Language provides the means to convey to Template Services certain
formatting decisions about the SPI messages of one application. The Template
Compiler places these decisions in templates. It then takes a template source file and
its supporting DDL dictionary and produces a template object file. On execution,
display-text procedures access your decisions through the templates.
The compiler builds certain templates, such as format and override templates, directly
from template-source statements. The compiler builds other templates from the DDL
dictionary that supports the template source file.
Components of an MSG Statement That Creates an Operator Message on page 3-1
and Components of an MSG Statement That Overrides a Tokens Value on page 3-2
show Template Language statements that produce a format and override template,
respectively.
Topic Page
Template Source File
3-2
Language Basics 3-3
Statements 3-6
Edit Markers 3-19
Edit Descriptors 3-20
*IF Edit Descriptor 3-20
Edit Codes 3-23
Example 3-1. Components of an MSG Statement That Creates an Operator
Message
MSG: ZEMS-TKN-EVENTNUMBER, ZEMS-EVT-BACKUP-CREATED
"EMS: Created backup in CPU <1>,"
"priority <2>, program file <3>"
1: ZEMS-TKN-NEWPROCESS-CPU, ZI2
2: ZEMS-TKN-NEWPROCESS-PRIORITY, 0
3: ZEMS-TKN-PROGRAMFILE
token value
token name
MSG statement
edit marker
edit code
message text
edit descriptor
VST007.vsd
edit code