On Tue, 22 Nov 2005 09:01:42 -0800, Schuh, Richard <[EMAIL PROTECTED]> wrote:

>I was browsing an XEDIT macro written in REXX and noticed a statement 
that looked like this:
>
>'EXTRACT some values to extract'    /* A COMMENT */  .  
>
>The period appears to be an accident caused by its being to the right of 
the display when the statement was edited. 
>
>For some reason, the period following the comment is not flagged as a 
syntax error. The EXTRACT works as an error free statement. If I compile 
the macro, the compiler also passes the statement without error. Replacing 
the period with a question mark or any other special character that I have 
tried does cause an error. Is this working properly? Is there something in 
the specification that makes the period a legitimate part of the syntax?
>========================================================================

When you do this EXTRACT is actually getting a RC=5 to flag the incorrect 
argument.  Arguments before the incorrect argument are processed, those 
after it are not.  EXTRACT.1 will be set to the invalid string.  See usage 
note 2 for the EXTRACT command.

Brian Nielsen

Reply via email to