Given
MVC FOO,=S(BAR)
DROP BASEREG1
...
MVC BAZ,=S(BAR)
DROP BASEREG2
...
LTORG
There are three choices, each equally logical.
--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3
________________________________________
From: IBM Mainframe Assembler List [[email protected]] on behalf
of Jonathan Scott [[email protected]]
Sent: Wednesday, November 24, 2021 7:42 AM
To: [email protected]
Subject: Re: ASMA030E?
Ref: Your note of Wed, 24 Nov 2021 12:08:28 +0000
gil writes:
> A harder question might be whether a literal S-constant assumes the USING
> in effect at the point of generating the literal or at the LTORG.
> Is this documented or does POLA suffice?
It is documented. See point number 6 on the following page:
https://www.ibm.com/docs/en/hla-and-tf/1.6?topic=literals-summary-literal-rules
Given that literals are effectively automatically generated DC
statements, I think it is logical that the resolution uses the
environment at the point that the statements are assembled.
Jonathan Scott, HLASM
IBM Hursley, UK