/************************** REXX **********************************/
/* This REXX program contains a deliberate error of not closing */
/* a comment. Without the error, it would pull input to produce */
/* a greeting. */
/******************************************************************/
PULL who /* Get the person's name.
IF who = '' THEN
SAY 'Hello, stranger'
ELSE
SAY 'Hello,' who
7 +++ PULL who /* Get the person's name.IF who =
'' THEN SAY 'Hello, stranger'ELSE SAY 'Hello,' who
CICREX453E Error 6 running HELLO EXEC, line 7: Unmatched "/*" or quote
The program runs until the language processor detects the error, the missing */ at the end of the comment. The PULL instruction does not use the data from the data stack or terminal because this line contains the syntax error. The program ends, and the language processor sends the error messages.
7 +++ PULL who /* Get the person's name.IF who =
'' THEN SAY 'Hello, stranger' ELSE SAY 'Hello,' who
CICREX453E Error 6 running HELLO EXEC, line 7: Unmatched "/*" or quote
For more information about the error, you can go to the message explanations in Error Numbers and Messages.
PULL who /* Get the person's name. */