11.07.2015 Views

HLASM: V1R6 Language Ref

HLASM: V1R6 Language Ref

HLASM: V1R6 Language Ref

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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Part 3. Macro languageChapter 6. Introduction to macro language . . 235Using macros . . . . . . . . . . . . . 235Macro definition . . . . . . . . . . . . 235Model statements . . . . . . . . . . . 236Processing statements . . . . . . . . . 237Comment statements . . . . . . . . . . 237Macro instruction . . . . . . . . . . . . 237Source and library macro definitions . . . . . 238Macro library . . . . . . . . . . . . 238System macro instructions . . . . . . . . 239Conditional assembly language . . . . . . . 239Chapter 7. How to specify macro definitions 241Where to define a macro in a source module . . . 241Format of a macro definition . . . . . . . . 242Macro definition header and trailer . . . . . . 242MACRO statement . . . . . . . . . . 242MEND statement . . . . . . . . . . . 243Macro instruction prototype . . . . . . . . 243Alternative formats for the prototype statement 244Body of a macro definition . . . . . . . . . 245Model statements . . . . . . . . . . . . 245Variable symbols as points of substitution . . . 246Listing of generated fields . . . . . . . . 246Listing of generated fields containingdouble-byte data . . . . . . . . . . 247Rules for concatenation . . . . . . . . . 247Concatenation of fields containingdouble-byte data . . . . . . . . . . 248Rules for model statement fields . . . . . . 249Name field . . . . . . . . . . . . 249Operation field . . . . . . . . . . . 249Operand field . . . . . . . . . . . 250Remarks field . . . . . . . . . . . 250Symbolic parameters . . . . . . . . . . . 250Positional parameters . . . . . . . . . . 252Keyword parameters . . . . . . . . . . 252Combining positional and keyword parameters 252Subscripted symbolic parameters . . . . . . 252Processing statements . . . . . . . . . . 253Conditional assembly instructions . . . . . 253Inner macro instructions . . . . . . . . . 253Other conditional assembly instructions . . . 253AEJECT instruction . . . . . . . . . . 254AINSERT instruction . . . . . . . . . . 254AREAD instruction . . . . . . . . . . 254Assign character string value . . . . . . 255Assign local time of day . . . . . . . . 256ASPACE instruction . . . . . . . . . . 257COPY instruction . . . . . . . . . . . 257MEXIT instruction . . . . . . . . . . . 257Comment statements . . . . . . . . . . . 258Ordinary comment statements . . . . . . . 258Internal macro comment statements . . . . . 258System variable symbols . . . . . . . . . 259Scope and variability of system variablesymbols . . . . . . . . . . . . . . 259&SYSADATA_DSN System Variable Symbol . . 260&SYSADATA_MEMBER System VariableSymbol . . . . . . . . . . . . . . 261&SYSADATA_VOLUME System VariableSymbol . . . . . . . . . . . . . . 262&SYSASM System Variable Symbol . . . . . 263&SYSCLOCK System Variable Symbol . . . . 263&SYSDATC System Variable Symbol . . . . 263&SYSDATE System Variable Symbol . . . . . 264&SYSECT System Variable Symbol . . . . . 264&SYSIN_DSN System Variable Symbol . . . . 266&SYSIN_MEMBER System Variable Symbol . . 267&SYSIN_VOLUME System Variable Symbol . . 268&SYSJOB System Variable Symbol . . . . . 269&SYSLIB_DSN System Variable Symbol . . . 269&SYSLIB_MEMBER System Variable Symbol 270&SYSLIB_VOLUME System Variable Symbol 270&SYSLIN_DSN System Variable Symbol . . . 271&SYSLIN_MEMBER System Variable Symbol 272&SYSLIN_VOLUME System Variable Symbol 273&SYSLIST System Variable Symbol . . . . . 273&SYSLOC System Variable Symbol . . . . . 275&SYSMAC System Variable Symbol . . . . . 276&SYSM_HSEV System Variable Symbol . . . 276&SYSM_SEV System Variable Symbol . . . . 277&SYSNDX System Variable Symbol . . . . . 278&SYSNEST System Variable Symbol . . . . . 280&SYSOPT_DBCS System Variable Symbol . . . 281&SYSOPT_OPTABLE System Variable Symbol 281&SYSOPT_RENT System Variable Symbol . . . 281&SYSOPT_XOBJECT System Variable Symbol 282&SYSPARM System Variable Symbol . . . . 282&SYSPRINT_DSN System Variable Symbol . . 283&SYSPRINT_MEMBER System Variable Symbol 284&SYSPRINT_VOLUME System Variable Symbol 284&SYSPUNCH_DSN System Variable Symbol 285&SYSPUNCH_MEMBER System VariableSymbol . . . . . . . . . . . . . . 286&SYSPUNCH_VOLUME System VariableSymbol . . . . . . . . . . . . . . 287&SYSSEQF System Variable Symbol . . . . . 287&SYSSTEP System Variable Symbol . . . . . 288&SYSSTMT System Variable Symbol . . . . . 288&SYSSTYP System Variable Symbol . . . . . 289&SYSTEM_ID System Variable Symbol . . . . 289&SYSTERM_DSN System Variable Symbol . . 290&SYSTERM_MEMBER System Variable Symbol 291&SYSTERM_VOLUME System Variable Symbol 291&SYSTIME System Variable Symbol . . . . . 292&SYSVER System Variable Symbol . . . . . 292Chapter 8. How to write macro instructions . . 295Macro instruction format . . . . . . . . . 295Alternative formats for a macro instruction . . 296© Copyright IBM Corp. 1982, 2008 233

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

Saved successfully!

Ooh no, something went wrong!