Yes to both. I rarely use ==, has = almost always has the semantics I want.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3

________________________________________
From: IBM Mainframe Discussion List [[email protected]] on behalf of 
Paul Gilmartin [[email protected]]
Sent: Thursday, April 6, 2023 12:07 PM
To: [email protected]
Subject: Re: REXX/COBOL conversion question

On Thu, 6 Apr 2023 15:04:19 +0000, Seymour J Metz wrote:

>A compare using = adds trailing blanks; use == if you need an exact match.
>
Trailing and/or leading.

"=" has a very lenient criterion of numeric equality:
    "say 2 = ' 200e-2  '"
    1

"==" gives better performance (empirically).

--
gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to