EXIT – Terminate processing
Use the EXIT statement to terminate
processing at that point.
When an EXIT statement is processed, no
further user commands are run; but any automatic EXECUTE and TERM statements
are executed before final termination.
EXIT [<rc>]
where <rc> is the return code (optional).
If you set the return code, it overrides any highest return code
or any response codes from LISTSTAT.
An EXIT statement is assumed when the end
of the program is reached or a SUBROUTINE statement
is found.