Okay, you caught me....I didn't try it out...hmmmm....this was my
understanding for the longest time....can't get it to work this way for
functions either:

3 *-* Translate="Whoops"           
   >L>   "Whoops"                   
 5 *-* NewTrans=Translate(Translate)
   >V>   "Whoops"                   
   >F>   "WHOOPS"                   

Still, my original statement stands....there are no reserved words!
:)


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
        

 


-----Original Message-----
From: The IBM z/VM Operating System [mailto:[email protected]] On
Behalf Of Schuh, Richard
Sent: Thursday, July 30, 2009 3:57 PM
To: [email protected]
Subject: Re: REXX DATE - Julian and Centry

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
> 

_____________________________________________________
This message contains information which is privileged and confidential and is 
solely for the use of the
intended recipient. If you are not the intended recipient, be aware that any 
review, disclosure,
copying, distribution, or use of the contents of this message is strictly 
prohibited. If you have
received this in error, please destroy it immediately and notify us at 
[email protected].

Reply via email to