On 23/04/2024 12:01 am, Seymour J Metz wrote:
delete foo

rather than

'DELETE' foo

is a simple example. In practise I often need multiple upper case constants in 
a single expression.

In this example, delete *looks like* an instruction rather than a variable - the fact that it is a variable is likely to surprise people.

It seems to be setting up for a problem like:

if <condition> then
   delete = 'yes'
...
if delete = yes then
    delete foo

If I understand your example correctly,
delete foo
concatenates the values of the variable delete (which is 'DELETE' if hasn't been initialized) and foo, inserting an implied blank between them, then passes the result to an environment set up previously with an ADDRESS statement?

This is what I want to avoid using SIGNAL ON NOVALUE.

To me, it is much clearer to be explicit, including the concatenation, e.g.
"DELETE " || foo
seems much clearer about exactly what is happening/expected, which are variables and which are (expected to be) constant etc.

--
Andrew Rowley
Black Hill Software

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to