CLIST REXX
SYSCALL statement
.
.
.
SYSCALL SOMESUB VAR
.
.
.
END
SOMESUB: PROC 1 VAR
.
.
.
EXIT
CALL instruction
.
.
.
call sub1 var
.
.
.
exit
sub1:
arg var
.
.
.
return
Debugging
CLIST REXX
Debugging a CLIST Debugging an exec
CONTROL SYMLIST LIST CONLIST MSG TRACE instruction
trace i
Interactive debug facility (EXECUTIL TS and TRACE ?R)
Return codes for commands and statements Return codes for commands
&LASTCC, &MAXCC
SET ECODE = &LASTCC
RC
ecode = RC
Trapping TSO/E command output Trapping TSO/E command output
&SYSOUTTRAP, &SYSOUTLINE OUTTRAP external function
Error handling Error handling
ERROR and ATTN statements SIGNAL ON ERROR,
SIGNAL ON FAILURE,
SIGNAL ON HALT,
SIGNAL ON NOVALUE, and
SIGNAL ON SYNTAX instructions.
CALL ON ERROR, CALL ON FAILURE, and
CALL ON HALT
instructions.¹
:
1 For more information about REXX error handling instructions, see z/OS TSO/E REXX Reference.
Execution
CLIST REXX
Explicit Explicit
EXEC command
EXEC MYNEW.CLIST(CLIST1)
EXEC command
EXEC MYNEW.EXEC(FIRST) EXEC
Implicit Implicit
Controlling Program Flow
200
z/OS V1R1.0 TSO/E REXX User’s Guide