Under TSO, if the variable &SYSOUTTRAP has a value greater than zero, the first n lines of command output (where n is the value of &SYSOUTTRAP) go into CLIST variables called &SYSOUTLINEx (x is the line number).
Note: These variables are not created if the OPSCMD command processor includes the CMDRESP(REXX) or CMDRESP(CLIST) keyword. For more information, see CMDRESP Keyword in this chapter.
Typical &SYSOUTTRAP values range from 1 to several thousand. When TSO/E captures command output, it also sets the variable &SYSOUTLINE to the number of &SYSOUTLINEx variables it created. You must do the following:
CLIST variables that OPSCMD creates exist until you delete them. Thus, issuing an OPSCMD that generates 100 lines of output creates variables &SYSOUTLINE1 through &SYSOUTLINE100. If you issue another OPSCMD that produces 10 output lines, &SYSOUTLINE1 through &SYSOUTLINE10 contain the new output lines, while &SYSOUTLINE11 through &SYSOUTLINE100 contain the rest of the output of the previous command.
| Copyright © 2012 CA. All rights reserved. | Tell Technical Publications how we can improve this information |