WARNING: ***MASSIVE KLUDGE***

If I really need to pass the value of a non-self defining term to a macro,
I'll code:

WorkArea DSECT
WORD     DS    F
FOO      DS    X
BAR      DS    Y
WorkLen  EQU   *-WorkArea
         :
&L       SETA  WorkLen
         MyMacro LENGTH=&L

This assumes you can define WorkArea/WorkLen before the SETA.

Robert Ngan
CSC Financial Services

IBM Mainframe Assembler List <[email protected]> wrote on
2014/08/18 16:19:36:

> From: retired mainframer <[email protected]>
> To: [email protected]
> Date: 2014/08/18 16:19
> Subject: Re: How to assign length of generated instructions to
macrovariable?
> Sent by: IBM Mainframe Assembler List <[email protected]>
>
> When you find a macro construct that handles non-self-defining terms
> properly, let us know.
>
> > -----Original Message-----
> > From: IBM Mainframe Assembler List [mailto:ASSEMBLER-
> > [email protected]] On Behalf Of Peter Hunkeler
> > Sent: Monday, August 18, 2014 1:18 PM
> > To: [email protected]
> > Subject: Re: How to assign length of generated instructions to macro
> > variable?
> >
> > Thanks for all the answers so far. I'll have to think how some of them
> > may help me to find a solution that will issue an MNOTE, not an
assemlby
> > error because of some statements like the above DS instruction.
> >
> > Its not about "pretty" versus "ugly" code; its because this question
> > now challenges me.

Reply via email to