Think again: 8 *-* when = 'ABCDEF' >>> "ABCDEF" 9 *-* select 10 *-* when when = 'ABCDEF' >>> "1" *-* then *-* say 'Good' >>> "Good"
Rexx is aware of context and can distinguish between key words and variable names. However, using a key word as a variable name is still ugly. Regards, Richard Schuh > -----Original Message----- > From: The IBM z/VM Operating System > [mailto:[email protected]] On Behalf Of A. Harry Williams > Sent: Thursday, July 30, 2009 1:40 PM > To: [email protected] > 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 >
