DSM Template Services Manual
Template Language
DSM Template Services Manual—427187-004
3-25
A (Character String) Edit Code
If you omit the field width, the token or field is allocated as much space in the display
text as the value requires, with no additional spaces.
These edit codes convert token values with these internal data types: (ZSPI-TDT-) INT,
INT2, INT4, UINT, ENUM, BYTE, CHAR, and TOKENCODE. Edit codes I and ZI cause
EMSTEXT to insert a minus sign in the display text if the data type is signed (INT,
INT2, INT4, and ENUM) and the value is negative.
EMSTEXT adds leading zeros or blanks if a token value takes less space than the field
width you specified. Use this table to determine which edit codes use zeros and which
use blanks.
A (Character String) Edit Code
The A[n] edit code inserts a character string in the display text.
Edit code A converts token values of (ZSPI-TDT-) CHAR. Trailing blanks are added if
you specify a field width larger than the character string requires.
The syntax of the A edit code is:
n
if present, is the field width, which must be less than 100.
When you use edit code A, an array of characters is treated as a single entity, a
string—which is not analogous to using edit code I with an array of integers. For
example, if you represent an array of six characters with edit code A10, the resulting
display text has ten consecutive characters: six characters from token values and four
trailing blanks.
Example
A 20-character name might have this edit code:
A20
BOOL (Boolean) Edit Code
The BOOL edit code inserts T or F (true or false) in the display text. BOOL has no
field-width option. BOOL converts token values of (ZSPI-TDT-) BOOLEAN data type
only.
The syntax of the BOOL edit code is:
A[n]
BOOL