The HLASM Language Reference contains full discussions of labeled and dependent USINGs. There are also lucid discussions of them, complete with perspicuous examples, in John Ehrman's SHARE presentations.
They--and, yes, labeled dependent USINGs too--comprise a powerful facility for avoiding otherwise longwinded and at once fragile ands awkward constructions. There are some kinds of code--list-processing schemes provide the obvious example--that should not be attempted without first mastering these USINGs. Do it. Note also that the use of long-displacement instructions increases the scope of a USING to 2^20 = 1048576 bytes from 2^12 = 4096 bytes. This facility makes the old multiple-USINGs game obsolescent. On 2/12/12, Andy Coburn <[email protected]> wrote: >> ASMA303W Multiple address resolutions may result from this USING and the > USING on statement number >> > > Instead of trying to suppress the warning message, it might be better to > eliminate the situation which is causing it. In my case, I was able to stop > this message by putting an end label on the USING which limited its scope to > just between the first and second sub-operands as shown: > > L R10,=A(STARTING_LOCATION) however you address the storage > > USING (STARTING_LOCATION,ENDING_LOCATION),R10 > > The scope of the using will only be between the starting and ending > locations. These are labels within the CSECT Like: > > STARTING_LOCATION DS 0H > ----- > ----- assembler code > ----- > ENDING_LOCATION EQU * > > This technique eliminated the overlapping USINGs and eliminated the warning > message as well. Hope this helps. > > Andy > > -----Original Message----- > From: IBM Mainframe Assembler List [mailto:[email protected]] > On Behalf Of [email protected] > Sent: Sunday, February 12, 2012 6:37 AM > To: [email protected] > Subject: Re: ASMA303W > > I dont use this technique. > Could you explain this a bit more. > is X. any Variable ? Or a Label ? > > ---------- Original Message ---------- > From: Micheal Butz <[email protected]> > To: [email protected] > Subject: Re: ASMA303W > Date: Sat, 11 Feb 2012 22:18:50 -0500 > > What don't you use using X.VARAIBLE > > X. USING. CVT,RX > > > To resolve the warning > > Sent from my iPhone > > On Feb 11, 2012, at 3:44 PM, "[email protected]" <[email protected]> wrote: > >> ASMA303W Multiple address resolutions may result from this USING and the > USING on statement number >> >> Anyone remember the Assembler Option to suppress the above message > (ASMA303W) in the assembly listing. >> >> Paul D'Angelo > -- John Gilmore, Ashland, MA 01721 - USA
