User Tools

Site Tools


ibm:vm370-lib:cmshelp:exit.helpexc

EXIT

EXEC Interpreter

exit.helpexc.txt
&EXIT STATEMENT                                                  EXEC statement

Use the &EXIT control statement to terminate processing the EXEC file.  If the
exit is taken from a first-level EXEC procedure, control passes to CMS.  If the
exit is taken from a nested EXEC procedure, control passes to the calling EXEC
procedure.  The format of the &EXIT control statement is:
+-----------+-----------------------------------------------------------------+
| &EXIT     | [0|return-code]                                                 |
+-----------+-----------------------------------------------------------------+
where:

return-code
         specifies a numeric value, which may be a variable symbol, to be used
         as the return code from this EXEC.  If the return code is not
         specified, it defaults to 0.


Usage Notes:

1.  If control is returned to CMS, the CMS ready message indicates the return
    code value.  Thus, the statement:
       &EXIT 12
    results in the ready message:
       Ready(00012); T=0/02 15:32:34

2.  If you specify:
       &EXIT &RETCODE
    the return code value displayed is the return code from the most recently
    executed CMS command.
ibm/vm370-lib/cmshelp/exit.helpexc.txt ยท Last modified: 2023/08/06 13:36 by Site Administrator