Guardian Procedure Calls Reference Manual (G06.25+)
Formatter Edit Descriptors
Guardian Procedure Calls Reference Manual—522629-013
F-22
The Z Edit Descriptor
The Z Edit Descriptor
The Z edit descriptor is used to display or interpret data values in hexadecimal
(base 16) integer form.
The Z edit descriptor has the following forms:
Z
w OR Zw.m
w an unsigned integer constant that defines the total field width and cannot
exceed 255. The field processed is the
w characters starting at the current
position. After the field is processed, the current position is advanced by
w
characters.
m an unsigned integer constant that defines the number of digits that must be
present on output.
The Z edit descriptor is used in the same manner as the I edit descriptor where the
number base (
b) is 16, except that the Z edit descriptor always treats the internal data
value as unsigned. (Refer to the description of the I edit descriptor, earlier in this
appendix.) For example, if the data item is an INT(16) in TAL, the following
conversions take place:
The “|” character is used to denote the boundaries of the output field.
Format Internal Value Result
Z6 20 | 14|
Z6.6 26 |00001A|
Z6.2 -3 | FFFD|