DSM Template Services Manual
Template Language
DSM Template Services Manual—427187-004
3-11
DO_COMMON Statement
DO_COMMON Statement
This statement is used only with the EMS subsystem. You must include DO_COMMON
in an EMS template source file if you are customizing EMS templates. (DO_COMMON
causes the Template Compiler to put certain information about universally shared
tokens, those with subsystem ID 0.0.0, into the template object file.)
FORMAT Statement
The FORMAT statement associates a DDL DEF (a structure or type) and a custom-
formatting procedure. Token and field values of the specified type are converted to
display text using the specified procedure. The FORMAT statement affects the display
text produced by the SPI_BUFFER_FORMAT procedures (not by the EMSTEXT
procedure).
DEF-name
is the DDL DEF.
proc-name
is the name of the custom-formatting procedure.
Example
To link the procedure abc_cvt_version to its structure definition abc-ddl-version, place
this FORMAT statement in the template source file for subsystem ABC:
FORMAT: abc-ddl-version WITH abc_cvt_version
For a description and an example of a custom-formatting procedure, see Custom-
Formatting Procedures on page 2-19.
DEF_ENUM Statement
The DEF_ENUM statement enables an application to assign application-specific
enumeration labels to shared tokens (tokens shared by multiple applications).
DEF_ENUM associates the name of a token or field with a DDL DEFINITION
statement of type ENUM (or with multiple ENUM DEFs, as long as the values do not
overlap). ZSPI-TKN-COMMAND, ZSPI-TKN-OBJECT-TYPE, ZSPI-TKN-RETCODE,
and ZEMS-TKN-EVENTNUMBER are all examples of tokens whose values are
interpreted differently for different applications. DEF_ENUM provides the way for each
application to give these tokens their own sets of labels.
DO_COMMON:
FORMAT: DEF-name WITH proc-name