Joe Reichman wrote:
>I have a prolog and eplog macros as exit and entry to program

>The prolog is coded as such
>                  MACRO
> &NAME    PRLG    &DSA
>                   GBLC   &DSANUM
> &DSANUM  SETC  '&DSA'
>When used in the prolog
>  As such
>          AIF   ('&DSANUM' EQ '').NODSA
>          AH    R11,=H'&DSANUM'
> .NODSA   ANOP

>   I get the value I coded e.g. PRLG 30
>GNERATES AH   R11,=H'30'

>However when I used it in the EIPLOG it fails to retain its value and is null
>              MACRO
>              EPLG
>             LCLC  &CURCSECT
>            GBLC  &DSANUM

>As this code in the eplog is skipped
>   WS_DSECT  DSECT
>                DS    18FD
> NAB      DS    AD
>             AIF   ('&DSANUM' EQ '').NODSA
>               DS    CL&DSANUM
> .NODSA   ANOP

I'd try setting another variable and testing it as well, to be sure something 
else isn't happening to reset &DSANUM, unlikely as that might be.

Also, MNOTE is your friend in terms of displaying the value of a variable at 
various points.

Reply via email to