Setting additional fields
Additional fields are available for each OUTPUT
segment.
KEY
- The fully qualified key of the segment.
TYPE
- The type of segment, for example ADOP.
PARENT_KEY
- The fully qualified key of the parent segment.
PARENT_TYPE
- The type of parent segment, for example ADCOM.
TAG
- The data passed into the
LIST
orSELECT
statement in theTAG
keyword. This allows output from multipleLIST
orSELECT
commands to be correlated back to the originating command by tagging each output record.
One single level of a key is formed from the segment type followed
by a hex 00 and then each key field separated by hex 00. Therefore,
a single level of a key for an application called MYAPPL with a status
of Active that is valid until 31 December 2071 would have a single
level key of ADCOM 00x MYAPPL 00x A 00x 711231
.
A fully qualified key is a sequence of single keys separated by
hex 01, to uniquely identify a segment within an object within the
database. Therefore, operation 010 within the previously described
MYAPPL would be ADCOM 00x MYAPPL 00x A 00x 711231 01x ADOP
00x 010
.