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


&MAXCC

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

&MAXCC contains the highest return code returned by a nested CLIST or by a TSO/E command, subcommand, or CLIST statement in the currently executing CLIST.

&MAXCC is not set when a subprocedure returns to the CLIST.

You can use &MAXCC with &LASTCC to determine error conditions. For example, error codes caused by evaluation errors are in the 800-899 range. You can modify the error routine in the example under &LASTCC to determine first whether the error was caused by an arithmetic evaluation. Insert the following IF-THEN-ELSE sequence before the check for character data in operands:
⋮
/* Evaluation error?           */
   IF &MAXCC <800 OR &MAXCC >899 THEN + 
      GOTO …
   ELSE + 
⋮

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014