z/OS TSO/E CLISTs
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Getting results of the TSOEXEC command

z/OS TSO/E CLISTs
SA32-0978-00

Three variables are related to the use of the TSOEXEC command: &SYSABNCD, &SYSABNRC, and &SYSCMDRC. You can modify any one of them with an assignment statement.

&SYSABNCD, &SYSABNRC, and &SYSCMDRC contain, the ABEND code, ABEND reason code, and command return code returned by the command most recently invoked by the TSOEXEC command. You can use these variables in situations similar to those in which you need to use &LASTCC and &MAXCC. For example, to determine if the TRANSMIT command terminated abnormally, you can code:
tsoexec transmit plpsc.d00abc1 dataset(letter.text)
/* Abend code non-zero?         */
IF &SYSABNCD¬=0 THEN + 
 DO
  WRITE The transmission of LETTER.TEXT to
  WRITE PLPSC.D00ABC1 abended.
 END

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014