CSLULGTS: retrieving command responses in XML
By issuing the CSLULGTS request, you can retrieve command responses in XML format. The CSLULGTS or CSLULGTP command puts the command responses to a single stem variable (including reason and return codes) so that REXX can access them.
- stem_name
- After the CSLULGTS command completes successfully, the stem variable
contains XML statements. Each row of the stem variable contains one
XML statement. If the beginning and ending XML tags are adjacent (that
is, no other XML tags exist between them), they are placed in the
same row of the stem variable. A single row of a stem variable might
look like this:
<rsp>TRAN(VIDB ) MBR (IMS2 ) CC( 0) </rsp>
- token_name
- The name of the command and response token (CART). It must match the name specified on the CART subcommand.
- wait_time
- A timeout value for the CSLULGTS command. The CSLULGTS command
waits until the command completes, but the wait lasts only as long
as the time specified. The wait time is in the format MMM:SS or ssss.
The maximum timeout value is 999:59. Enclose this value in quotes.
Note: This timeout value is not the same as the timeout value for the WAIT subcommand; however, this wait_time should be at least as long as the value specified on the WAIT subcommand. Otherwise, no command response are received for long running commands.
If no response is received the first time, you can issue the CSLULGTS command again.