There is no &accessible &SYS... system variable that records which of
GEN|NOGEN is in effect.

What you can do is use a binary/boolean set symbol that you set and
reset yourself, as in

|         gblb  &suppress_mnotes
| . . .
|&suppress_mnote setb 1
|         push NOGEN . . .
| . . .


Then within each macro that will be expanded you will need

|          gblb  &suppress_mnotes

and instances of

|          aif    (&suppress_mnotes).after_mnote_<counter>
|          mnote  . . .
|.after_mnote_<counter>  anop

Things like this are easy enough to do when one is writing a set of
macros, but they are tedious to retrofit.

John Gilmore, Ashland, MA 01721 - USA




On 6/17/12, Hardee, Chuck <chuck.har...@thermofisher.com> wrote:
> Hello Listers!
>
> I am in the process of writing a macro and would like to control whether or
> not some MNOTEs are generated.
>
> What I am looking for is whether or not I can check the current status of
> GEN versus NOGEN.
>
> If the macro is assembled and PRINT GEN is specified, I don't want to issue
> my MNOTEs but if the assembly is performed with PRINT NOGEN, then I want to
> execute the MNOTEs.
>
> Has anyone ever done anything like this?
> If so, how does one test for the GEN/NOGEN status?
>
> Thanks,
> Chuck
>
> Charles (Chuck) Hardee
> Senior Systems Engineer
> Database Administration
> Information Technology Services
> Thermo Fisher Scientific
> chuck.har...@thermofisher.com
>

Reply via email to