EasyManuals Logo
Home>IBM>Computer Hardware>TSO/E REXX

IBM TSO/E REXX User Manual

IBM TSO/E REXX
242 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #130 background imageLoading...
Page #130 background image
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 z/OS TSO/E REXX
Reference.
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

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IBM TSO/E REXX and is the answer not in the manual?

IBM TSO/E REXX Specifications

General IconGeneral
BrandIBM
ModelTSO/E REXX
CategoryComputer Hardware
LanguageEnglish

Related product manuals