Not necessarely.

Suppose You doing (want to do!) an essentially character 
compare.
Like:  x1 = x2  where e g x1 = 'AB' and x2 = 'CDE' etc.

Now You have  x1 = '1'  and  x2 = '01'.
Doing the compare  x1 = x2  will get the result that they are equal, 
becuase REXX is doing a numeric compare.
You can aviod this with having the compare of:  'A'||x1 = 'A'||x2  etc.

Or using the form:   x1 == x2   (note the double equals).
 
 

Regards, 
Thomas Berg 
__________________________________________ 
Thomas Berg   Specialist   IT-U   SWEDBANK 



 

> -----Ursprungligt meddelande-----
> Från: IBM Mainframe Discussion List 
> [mailto:ibm-m...@bama.ua.edu] För Paul Gilmartin
> Skickat: den 11 augusti 2009 17:17
> Till: IBM-MAIN@bama.ua.edu
> Ämne: Re: Clist Quest
> 
> On Tue, 11 Aug 2009 10:52:24 -0400, Baraniecki, Ray wrote:
> 
> >Does this technique work the same in Rexx?
> >
> It would, but it's unnecessary; pointless; undesirable.
> 
> >-----Original Message-----
> >From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On 
> >Behalf Of McKown, John
> >Sent: Tuesday, August 11, 2009 10:02 AM
> >
> >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.
> 
> -- gil
> 
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access 
> instructions, send email to lists...@bama.ua.edu with the 
> message: GET IBM-MAIN INFO Search the archives at 
> http://bama.ua.edu/archives/ibm-main.html
> 

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

Reply via email to