Well, I was guessing at the intent of the original code. If it was supposed to 
be a constant stem then quoting is required. Similarly, if it was intended to 
have a constant tail then quoting is required. There's also an issue of whether 
the original code was supposed to uppercase everything.


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

________________________________________
From: IBM Mainframe Discussion List [[email protected]] on behalf of 
Paul Gilmartin [[email protected]]
Sent: Friday, January 29, 2021 11:38 AM
To: [email protected]
Subject: Re: Rexx stem variable question

On Fri, 29 Jan 2021 15:42:03 +0000, Seymour J Metz wrote:

>> Tails are literals

>No; tails are symbols, and are substituted.
>
+1

>>value(isstepinit.userid.) = 0.

>There are several issues with that. Safer is
>    old = value(isstepinit'.'userid'.', 0)

Oh my gosh!  Usually not.  Consider:
    trace R
    signal on novalue

    Foo = 'Bar'
    userid = 'FOO'
    isstepinit = 'Fred'
    old = value(isstepinit'.'userid'.', 0)
    say old

FRED.Bar.

But that may be what you want.

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