Knowledge Base > Automation Engine and Target Systems > NSK > EMS Template Tile

EMS Template File

EMS template files can be used to edit messages in a system compliant way. In doing so, you can define the SSID (subsystem ID). By default, it is uc4.1.1.

Procedure:

1.) The DDL file (uc4.ddl) must be compiled to a dictionary.

Ensure that within this dictionary, the $SYSTEM.ZSPIDEF.ZSPIDDL and $SYSTEM.ZSPIDEF.ZEMSDDL have already been compiled.

2.) The TMPL file (uc4.tmpl) must refer to this created dictionary.

Content of the uc4.ddl

CONSTANT zspi-val-uc4 VALUE IS "UC4    ".
* Defines subsystem no. part of UC4 subsystem ID
CONSTANT zspi-ssn-uc4 VALUE IS 1.
* Defines version part of Pathway subsystem ID
CONSTANT zAE-val-version VALUE IS VERSION "  1".
* Defines the structure for the Pathway subsystem ID
* and initializes its parts
DEFINITION ZAE-VAL-SSID TACL SSID.
02 Z-FILLER TYPE CHARACTER 8 VALUE IS ZSPI-VAL-UC4.
02 Z-OWNER REDEFINES Z-FILLER TYPE ZSPI-DDL-CHAR8.
02 Z-NUMBER TYPE ZSPI-DDL-INT VALUE IS ZSPI-SSN-UC4.
02 Z-VERSION TYPE ZSPI-DDL-INT VALUE IS ZAE-VAL-VERSION.
END

Content of the uc4.tmpl

VERSION: "UC4 NSK agent Version 8.00A002 0040 AAD"
DICT:    $DATA01.UC4DICT
SSID:    ZAE-VAL-SSID
SSNAME:  "UC4" , "UC4"
MSG:    ZSPI-TKN,0
"DUMMY"