
Need to test for an active USING in a macro
:>> > I have a need to be able to test if an active using is current from
:>> > within a macro. I cannot see anything in the manual to help me. Can
:>> > anyone suggest a possible way to do this. Something like this would be
:>> > ideal -
:>snip
:>> that it not exactly what you ask for, but
:>> 1) If the expansion of your macro uses a field of the DSECT as an operand of
:>> a machine instruction, the assembler will produce an error message
:>> (something like "Adressability error")
:>> 2) You can have the listing show at the top of every page which using
:>> instructions are in effect (PRINT USING).
:>Yes, I currently do get addressability error. I have changed a macro
:>which now
:>relies on an active using. There are however some instances where there
:>isn't
:>an active using. It would have been good to make the macro more
:>intelligent
:>and react to this. The alternative is to update all the one-off modules
:>that
:>call the macro and the macroi itself to handle the non using case.
Well, you could get tricky, keeping track of the USINGs, DROPs, PUSH USINGs
and POP USINGs and then stick a keyword on the specific macroes.
--
http://www.dissensoftware.com
Director, Dissen Software, Bar & Grill - Israel