On May 24, 2012, at 03:54, Sharuff Morsa3 wrote:
> I have raised a requirement on HLASM to see what they can do to
> improve/change the behavior raised in this thread.
>
> You can find the RFE at
> http://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=22828
>
>
> Please add your comments to the RFE.
> Sharuff
>
An experiment:
R:C 00000 10 USING *,12
000000 D504 C016 C010 00016 00010 11 CLC =C'XYZZY',=C'WOMBAT'
So, HLASM is apparently very good at inferring the length of
the first argument to CLC at Pass 2, when it's needed, even in
the challenging case of a previously unreferenced literal.
And I believe the CLC2, MVC2, etc. macros should suffice if
they were more transparent. What I think would be most useful
is a new BIF, to return the length of an argument, Its use
could be restricted to Pass2 (no storage defining operations).
So a programmer might code, simply:
MACRP
&L MVC2 &A1,&A2
&L MVC A1(OBJECT_LENGTH(&A2)),A2
END
... but constructs such as:
DC CL(OBJECT_LENGTH(&A2))
... need not be supported.
-- gil