11.07.2015 Views

HLASM: V1R6 Language Ref

HLASM: V1R6 Language Ref

HLASM: V1R6 Language Ref

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Levels of macro call nestingCOMPAT(SYSLIST) Assembler Option: If the COMPAT(SYSLIST) assembler optionis specified, and a symbolic parameter is only a part of the value specified in aninner macro instruction operand, only the character string value given to theparameter by an outer call is passed through the nesting level. Inner sublist entriesare, therefore, not available for reference in the inner macro.▌2▐MACRO ┌────┴────┐OUTER &P1,&P2,&P3...INNER &P1,&P2,&P3. └────┬────┘. ▌1▐.MENDMACROINNER &Q,&R,&S.. ┐L 3,&Q(1) │A 3,&Q(2) ├ ▌4▐ST 3,&Q(3) │. ┘.MVC &R,&S..MEND────────────────────────────────────────────────────────────────START 0. ▌5▐. ┌──┴──┐OUTER (AREA,F200,SUM),TO,FROM¹. └──────┬──────┘. ▌3▐.+ L 3,AREA+ A 2,F200+ ST 3,SUM..+ MVC TO,FROM..ENDNotes:1. The following inner macro call statement is generated, but not listed unless thePCONTROL(MCALL) option is specified, or the assembler instruction ACONTROLMCALL is active:INNER (AREA,F200,SUM),TO,FROMFigure 35. Passing values through nesting levelsSystem variable symbols in nested macrosThe fixed global-scope system variable symbols (see “System variable symbols” onpage 259) are not affected by the nesting of macros. The variable global-scopesystem variable symbols have values which may change during the expansion of amacro definition. The following system variable is influenced by nested macros:312 <strong>HLASM</strong>: <strong>V1R6</strong> <strong>Language</strong> <strong>Ref</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!