DSM Template Services Manual

Template Language
DSM Template Services Manual427187-004
3-6
Statements
The token value specified by token-id can be structured or unstructured. That is, you
can overlay a simple value with a structured value and then reference subcomponents
of the structured value.
In token-id, you can qualify the token name with a subsystem ID and include an
index. For syntax descriptions, see Tokens (Unqualified) on page 3-4 and Qualified
Tokens on page 3-4.
In field-part, you can omit certain levels, as you do in COBOL, as long as
struct-name and the components that follow it form an unambiguous field reference.
Example
Suppose ABC-TKN-TWOWORDS is a token with a two-word value, and BYTE-
STRUCT is a structure that contains a byte array B with four bytes. The first line in the
example contains a reference to the first byte, and the second line contains a reference
to the last three bytes (a slice of an array).
1: ABC-TKN-TWOWORDS.BYTESTRUCT.B(0)
2: ABC-TKN-TWOWORDS.BYTESTRUCT.B(1:3)
Statements
This example summarizes the syntax of Template Language statements. Enter the
statements in this order:
The MSG statement can occupy one line or span multiple lines. All other statements
must be complete on a single line.
VERSION: "version-string"
[ DICT: DDL-subvol ]
SSID: subsystem-ID
SSNAME: "subsystem-name" [, "SSID-abbreviation"]
[ SHARED_SSID: ssid [, ssid ] ... ]
[ FORMAT: DEF-name WITH proc-name ]
[ DEF_ENUM: fld-tkn AS ENUM name [, ENUM-name ] ... ]
MSG: template-definition-statement-1
.
.
.
MSG: template-definition-statement-N