Numeric compare vs. strict compare (and the fact that REXX supports scientific notation). The first one is 0000e0 (scientific notation) which equates to 0, the second, since you are using the strictly equal operator it resolves false.
-----Original Message----- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Dyck, Lionel B. (TRA) Sent: Friday, September 30, 2016 1:30 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: REXX Compare Anomaly Here is a REXX challenge Why does this compare results in ok ttr = '0000E0' if ttr = '000000' then say 'ok'; else say 'ng' And this one works and results in ng ttr = '0000E0' if ttr == '000000' then say 'ok'; else say 'ng' -------------------------------------------------------------------------- Lionel B. Dyck (TRA Contractor) Mainframe Systems Programmer Enterprise Infrastructure Support (Station 200) (005OP6.3.10) VA OI&T Service Delivery & Engineering ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN E-MAIL CONFIDENTIALITY NOTICE: This e-mail from Donegal Insurance Group may contain CONFIDENTIAL and legally protected information. If you are not an intended recipient, please do not copy, use or disclose this email or its contents to others; and please notify us by calling toll free (800) 877-0600 x7880 or by replying to this message, and then delete it from your system. Delivery of this email to an unintended recipient is not a waiver of any attorney-client or other applicable privilege. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN