On Mon, 14 May 2018 20:21:49 +0000, Seymour J Metz wrote:
>
>> And if BAR || '2' is an assigned variable 
>
>The statement in question was
>
>     x =value('foo.'bar'2')
>
>It has nothing to do with a variable called BAR2, but rather a variable called 
>BAR.
>
Read what I wrote.  Not the variable called "BAR2", but the variable called 
"value
(not name) of BAR with digit 2 appended.  We had this discussion several years
ago; you were wrong then; you remain wrong now.

Sample Rexx code:
    trace R
    signal on novalue
    BAR = 'Wombat'

    drop WOMBAT2
    say '==>' value( 'foo.'bar'2' )

    WOMBAT2 = 'XYZZY'
    say '==>' value( 'foo.'bar'2' )

And output, traced:
     2 *-* signal on novalue
     3 *-* BAR = 'Wombat'

     5 *-* drop WOMBAT2
     6 *-* say '==>' value( 'foo.'bar'2' )
       >V>   "Wombat"
==> FOO.WOMBAT2

     8 *-* WOMBAT2 = 'XYZZY'
     9 *-* say '==>' value( 'foo.'bar'2' )
       >V>   "Wombat"
==> FOO.XYZZY

>> For safety, you need to:
>>     TAIL = bar'2'
>>     X = foo.TAIL
>
>ITYM for safety you need to use the value() BIF.
> 
No, I meant what I said.

-- gil

>> How about in JCL?
>
>Yes, I use inline data in JCL, but a lot less than when I was dealing with 
>cards. Most of the inline data that I've seen in the last few decades 
>shouldn't have been inline.
>
???

-- gil

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

Reply via email to