I do disagree about NOVALUE, but whatever floats your boat.

However, I would say that it is very bad form to knowingly use a keyword as a 
variable name.

-- 
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3
עַם יִשְׂרָאֵל חַי
נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר




________________________________________
From: IBM Mainframe Discussion List <[email protected]> on behalf of 
Paul Gilmartin <[email protected]>
Sent: Wednesday, September 17, 2025 2:10 PM
To: [email protected] <[email protected]>
Subject: Re: Edit macro CHANGE not preseriving case


External Message: Use Caution


On Wed, 17 Sep 2025 13:42:49 -0400, Phil Smith III wrote:
>    ...
>In Rexx, it's a very good idea to ALWAYS know what's a literal and what's a 
>variable and to quote all literals. It not only avoids problems but is also 
>more efficient.
>
>(The "problems" part comes when you have that line as you wrote it working, 
>and then someone assigns variable LOWER to some value and all hell breaks 
>loose!)
>
What "someone"?  No one but me changes that EXEC and I'd never do that.

I strongly counsel and generally use SIGNAL ON NOVALUE to alert
myself to this.  Shmuel will probably disagree, perhaps because
it costs 18 keystrokes when coding.  but I contend it saves parser
cycles and enormous debugging time.

I have even started using 'set -o no''unset' in complicated shell
scripts to catch spelling errors.

--
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