Ray,

In REXX unless you set the var to a null value - the value will be the name of 
the var.

In your case

item    would display as ITEM in rexx until it had a value assigned to it.  So 
not quite the same in REXX as CLIST.

To demonstrate

/*  Rexx -                                          
  Display contents of a var                         
 */                                                 
                                                    
trace ?i                                            
item1 = ' '                                         
                                                    
Say "Item contains " item                           
Say "Set Item:" item1 " value"                      

When it is executed it shows:
     6 *-* item1 = ' '                                                   
       >L>   " "                                                         
+++ Interactive trace.  TRACE OFF to end debug, ENTER to continue. +++   
                                               
     8 *-* Say "Item contains " item           
       >L>   "Item contains "                  
       >L>   "ITEM"                            
       >O>   "Item contains  ITEM"             
Item contains  ITEM                            
                                               
     9 *-* Say "Set Item:" item1 " value"      
       >L>   "Set Item:"                       
       >V>   " "                               
       >O>   "Set Item:  "                     
       >L>   " value"                          
       >O>   "Set Item:    value"              
Set Item:    value                             



Lizette



>
>Does this technique work the same in Rexx?
>
>Thanks, 
> 
>Ray Baraniecki 
>Morgan Stanley Smith Barney
>18th Floor 
>1 New York Plaza 
>New York, NY 10004 
>Office - 212-276-5641
>   Cell - 917-597-5692 
>[email protected]          
>BE CARBON CONSCIOUS. PLEASE CONSIDER OUR ENVIRONMENT BEFORE PRINTING THIS 
>E-MAIL.
>
>-----Original Message-----
>From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of 
>McKown, John
>Sent: Tuesday, August 11, 2009 10:02 AM
>To: [email protected]
>Subject: Re: Clist Quest
>
>> -----Original Message-----
>> From: IBM Mainframe Discussion List 
>> [mailto:[email protected]] On Behalf Of Baraniecki, Ray
>> Sent: Tuesday, August 11, 2009 8:53 AM
>> To: [email protected]
>> Subject: Clist Quest
>> 
>> I ran across the following IF statement in a Clist that I am 
>> working on. The statement itself is understandable, it's the 
>> period usage that I don't understand. Can anyone shed some 
>> light on this?
>> 
>> IF .&ITEMS < .5 THEN DO
>> 
>> 
>> Thanks,
>> 
>> 
>> Ray Baraniecki
>
>suppose the line were:
>
>IF &ITEMS < 5 THEN DO
>
>What if &ITEMS is null ('')? Without the periods, the CLIST intepreter would 
>see the line:
>
>IF < 5 THEN DO
>
>which it could not handle (syntax error). So the periods are there just to 
>make the line syntactically correct in the case where &ITEMS is null.
>

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to