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.

Macro instruction format┌─ ▌4▐ Null character string│ is default valueMACROMACCORR &KEY1=DEFAULT,&KEY2=,&KEY3=123..DC C’&KEY1&KEY2&KEY3’..MEND───────────────────────────────────────────────────────────────OPEN START 0.. ▌1▐ ▌1▐ ▌1▐MACCOOR KEY1=OVERRIDE,KEY2=0,KEY3=456. │ │ │. ┌────┘ ┌──────────┘ │. │+ DC C’OVERRIDE0456’ │. │. └────────────────┘.MACCOOR ▌2▐. ┌──── KEY2 has null character. │ string as default. + DC C’DEFAULT123’... ▌3▐MACCOOR KEY4=SYMBOL,KEY2=0ASMA017W ** WARNING ** Undefined keyword parameter . . ....+ DC C’DEFAULT0123’...MACCOOR KEY1=,KEY3=456. ┌──────────────────── • KEY1 parameter has null. │ character string value. • KEY2 has null character+ DC C’456’ string as defaultENDFigure 30. Relationship between keyword operands and keyword parameters and theirassigned valuesCombining positional and keyword operandsYou can use positional and keyword operands in the same macro instruction. Use apositional operand for a value that you change often, and a keyword operand for avalue that you change infrequently.Positional and keyword parameters can be mixed freely in the macro prototypestatement (see ▌1▐ in Figure 31). The same applies to the positional and keywordoperands of the macro instruction (see ▌2▐ in Figure 31). Note, however, that theorder in which the positional parameters appear (see ▌3▐ in Figure 31) determinesthe order in which the positional operands must appear. Interspersed keywordChapter 8. How to write macro instructions 301

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

Saved successfully!

Ooh no, something went wrong!