Interpreting Error Messages - IBM TSO/E REXX User Manual

Table of Contents

Advertisement

Interpreting Error Messages

When you run an exec that contains an error, an error message often displays the
line on which the error occurred and gives an explanation of the error. Error
messages can result from syntax errors and from computational errors. For
example, the following exec has a syntax error.
When the exec runs, you see the following on your screen:
The exec runs until it detects the error, a missing */ at the end of the comment. As
a result, the SAY instruction displays the question, but doesn't wait for your
response because the next line of the exec contains the syntax error. The exec
ends and the language processor displays error messages.
The first error message begins with the line number of the statement where the
error was detected, followed by three pluses (+++) and the contents of the
statement.
'' THEN SAY 'Hello stranger'ELSE
The second error message begins with the message number followed by a
message containing the exec name, line where the error was found, and an
explanation of the error.
IRX0006I Error running REXX.EXEC(HELLO), line 7: Unmatched "/*" or quote
For more information about the error, you can go to the message explanations in
z/OS TSO/E Messages, where information is arranged by message number.
To fix the syntax error in this exec, add */ to the end of the comment on line 7.
Example of an Exec with a Syntax Error
/************************** REXX ***********************************/
/* This is an interactive REXX exec that asks the user for a
/* name and then greets the user with the name supplied. It
/* contains a deliberate error.
/*******************************************************************/
SAY "Hello! What's your name?"
PULL who
IF who = '' THEN
SAY 'Hello stranger'
ELSE
SAY 'Hello' who
Hello! What's your name?
7 +++ PULL who
'' THEN SAY 'Hello stranger'ELSE
IRX0006I Error running REXX.EXEC(HELLO), line 7: Unmatched "/*" or quote
***
7 +++ PULL who
PULL who

Interpreting Error Messages

/* Get the person's name.
/* Get the person's name.IF who =
SAY 'Hello' who
/* Get the person's name.IF who =
SAY 'Hello' who
/* Get the person's name.*/
Chapter 2. Writing and Running a REXX Exec
*/
*/
*/
19

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents