Have I missed something, or is the solution to this fairly simple?

1. In library member 'DC':

       MACRO
&NAME  DC    &PARM...
 ...
       MEND

2. In code, to get the DC macro 'in front of' the assembler DC:

       COPY  DC

3. In the DC macro, use mnemonic tagging to access the assembler DC:

<label> DC:ASM <DC parameters>

If (and only if) mnemonic tagging overrides OPSYN (not clearly defined
in the book, AFAICS), this could be even simpler:

DC    OPSYN  MYDC

then, within MYDC:

<xxx> DC:ASM <yyy>

Does anyone know if mnemonic tagging overrides OPSYN?


Brent Longborough


> Date:    Fri, 18 Jan 2013 19:54:13 +0000
> From:    Bodoh John Robert <[email protected]>
> Subject: OPSYN Self Execution
>
> All,
>
> I would like to augment the DC assembler instruction in some parts of a pro=
> gram.  I would like to collect additional information from the DC instructi=
> on.  I have been playing with the OPSYN statement to redefine the DC assemb=
> ler instruction to invoke a macro.  The problem I'm having is to get the ma=
> cro to re-issue the DC assembler instruction and have it behave the way it =
> should:
>
> DC       OPSYN MYDC
>
> MYDC  MACRO
>             .
>             .
> .* collect information
>             .
>             .
>             DC       &SYSLIST         execute real DC
>             MEND
>
> When I try such an example, I get an out of memory condition.  Does anyone =
> know if a technique to cause the real DC instruction to be executed?
>
> John

Reply via email to