Harry,
I *like* it when people keep pushing a question until a myth has been
fully explored.
On z/VM 5.1 (CMS Level 21, Service Level 501 ) running the following EXEC
to find the REAL truth:
/* */ address command
When=Date('B')-1
/* Will cause problems for the following */
Select
When g=1 then
say 'g=1'
Otherwise
say 'Otherwise reached.'
End
say 'EXEC ended without errors!'
Exit
Results in messages at the console:
---<snip>---
Otherwise reached.
EXEC ended without errors!
---<snip>---
Looks to me like this myth is: BUSTED! :-)
But it's still an ugly practice to use rexx reserved
words/keywords/sub-keywords as variable names. One day (or: sleepy night)
when one least expects it, anyone using that ugly practice will regret it.
Mike Walter
Hewitt Associates
Any opinions expressed herein are mine alone and do not necessarily
represent the opinions or policies of Hewitt Associates.
"A. Harry Williams" <[email protected]>
Sent by: "The IBM z/VM Operating System" <[email protected]>
07/30/2009 03:39 PM
Please respond to
"The IBM z/VM Operating System" <[email protected]>
To
[email protected]
cc
Subject
Re: REXX DATE - Julian and Centry
On Thu, 30 Jul 2009 12:39:14 -0500 Frank M. Ramaekers said:
>I don't think that any of the Rexx functions commands are reserved, but
>you have to be careful if you use any of them. For instance:
>When=Date('B')-1
>Will cause problems for the following
>Select
> When g=1 then
> nop
> Otherwise
> nop
>End
Have you actually tried this, or are you working hand-me-down tales?
>To fix this, you have to put the keywords within quotes (apostrophes) to
>prevent substitution:
>Select
> 'When' g=1 then
> nop
> Otherwise
> nop
>End
>Frank M. Ramaekers Jr.
>Systems Programmer MCP, MCP+I, MCSE & RHCE
>American Income Life Insurance Co. Phone: (254)761-6649
>1200 Wooded Acres Dr. Fax: (254)741-5777
>Waco, Texas 76710
The information contained in this e-mail and any accompanying documents may
contain information that is confidential or otherwise protected from
disclosure. If you are not the intended recipient of this message, or if this
message has been addressed to you in error, please immediately alert the sender
by reply e-mail and then delete this message, including any attachments. Any
dissemination, distribution or other use of the contents of this message by
anyone other than the intended recipient is strictly prohibited. All messages
sent to and from this e-mail address may be monitored as permitted by
applicable law and regulations to ensure compliance with our internal policies
and to protect our business. E-mails are not secure and cannot be guaranteed to
be error free as they can be intercepted, amended, lost or destroyed, or
contain viruses. You are deemed to have accepted these risks if you communicate
with us by e-mail.