TAG Argument
Use the TAG
argument in a LIST
command to
create an additional output field called TAG
, which
will be available in any segment generated by the command. This allows
for the output from multiple LIST
commands
to be correlated back to the originating command.
In the following example, the command performs 2
LIST
requests:
one for the applications whose names begin with ABC
,
one for the applications whose owner ID begins with ABC
.
The returned records lists the TAG
and the ADID
.
By checking the TAG
, you can determine from
which LIST
request each record comes.OUTPUT ADCOM FIELDS(TAG,ADID)
LIST ADCOM ADID(ABC*) TAG(ABCAPPS)
LIST ADCOM OWNER(ABC*) TAG(ABCOWNED)
Note: Any
SELECT
statements generated
from a LIST
statement using OPTIONS
SELECT(Y)
will automatically be passed the same TAG
argument.