MISSING DATA SET NAME
INVALID KEYWORD, ?
***
If an exec includes "trace c" and again incorrectly issues the LISTDS command, the
exec displays the line number and the command, executes it, and displays the error
message and the return code from the command, as follows:
3 *-* "LISTDS ?"
>>>
"LISTDS ?"
MISSING DATA SET NAME
INVALID KEYWORD, ?
+++ RC(12) +++
***
TRACE E
When you specify "trace e" in an exec, any host command that results in a nonzero
return code is traced after it executes and the return code from the command is
displayed.
If an exec includes "trace e" and again issues the previous incorrect LISTDS
command, the exec displays error messages, the line number and the command,
and the return code from the command, as follows:
MISSING DATA SET NAME
INVALID KEYWORD, ?
3 *-* "LISTDS ?"
+++ RC(12) +++
***
For more information about the TRACE instruction, see
Using REXX Special Variables RC and SIGL
As mentioned earlier, the REXX language has three special variables — RC, SIGL,
and RESULT. These variables are set by the system during particular situations and
can be used in an expression at any time. If the system did not set a value, a
special variable displays its name, as do other variables in REXX. You can use two
of these special variables, RC and SIGL, to help diagnose problems within execs.
RC
RC stands for return code and is set every time a command is issued. When a
command ends without error, RC is usually set to 0. When a command ends in
error, RC is set to whatever return code is assigned to that error.
For example, the previous incorrect LISTDS command is issued followed by the RC
special variable in a SAY instruction.
"LISTDS ?"
SAY 'The return code from the command is' RC
This results in the following:
MISSING DATA SET NAME
INVALID KEYWORD, ?
The return code from the command is 12
***
Debugging Execs
112
z/OS V1R1.0 TSO/E REXX User’s Guide
Содержание TSO/E REXX
Страница 1: ...z OS TSO E REXX User s Guide SA22 7791 00 ...
Страница 2: ......
Страница 3: ...z OS TSO E REXX User s Guide SA22 7791 00 ...
Страница 10: ...viii z OS V1R1 0 TSO E REXX User s Guide ...
Страница 12: ...x z OS V1R1 0 TSO E REXX User s Guide ...
Страница 14: ...xii z OS V1R1 0 TSO E REXX User s Guide ...
Страница 18: ...xvi z OS V1R1 0 TSO E REXX User s Guide ...
Страница 20: ...2 z OS V1R1 0 TSO E REXX User s Guide ...
Страница 58: ...Tracing Expressions with the TRACE Instruction 40 z OS V1R1 0 TSO E REXX User s Guide ...
Страница 78: ...60 z OS V1R1 0 TSO E REXX User s Guide ...
Страница 86: ...Built In Functions 68 z OS V1R1 0 TSO E REXX User s Guide ...
Страница 128: ...Issuing Other Types of Commands from an Exec 110 z OS V1R1 0 TSO E REXX User s Guide ...
Страница 136: ...Debugging Execs 118 z OS V1R1 0 TSO E REXX User s Guide ...
Страница 170: ...Protecting Elements in the Data Stack 152 z OS V1R1 0 TSO E REXX User s Guide ...
Страница 201: ...Part 3 Appendixes Copyright IBM Corp 1988 2001 183 ...
Страница 202: ...184 z OS V1R1 0 TSO E REXX User s Guide ...
Страница 222: ...Using Variables 204 z OS V1R1 0 TSO E REXX User s Guide ...
Страница 226: ...208 z OS V1R1 0 TSO E REXX User s Guide ...
Страница 238: ...220 z OS V1R1 0 TSO E REXX User s Guide ...
Страница 241: ......