HLASM Language Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Alternative formats for a macro instruction

HLASM Language Reference
SC26-4940-06

A macro instruction can be specified in one of the three following ways:
  • The normal way, with the operands preceding any remarks
  • The alternative way, allowing remarks for each operand
  • A combination of the first two ways
The alternative statement format is not available for machine instructions.
The following example shows the normal statement format (NAME1), the alternative statement format (NAME2), and a combination of both statement formats (NAME3).
       Opera-
Name   tion   Operand                       Comment                 Cont.

NAME1  OP1    OPERAND1,OPERAND2,OPERAND3    This is the normal        X
                                            statement format

NAME2  OP2    OPERAND1,                     This is the alter-        X
              OPERAND2                      native statement format

NAME3  OP3    OPERAND1,                     This is a combination     X
              OPERAND2,OPERAND3             of both
Notes:
  1. Any number of continuation lines are allowed. However, each continuation line must be indicated by a non-space character in the column after the end column of the previous statement line (see Continuation lines).
  2. If the DBCS assembler option is specified, the continuation features outlined in Continuation of double-byte data apply to continuation in the macro language. Extended continuation might be useful if a macro operand contains double-byte data.
  3. Operands on continuation lines must begin in the continue column (column 16), or the assembler assumes that the current line and any lines that follow contain remarks.

    If any entries are made in the columns before the continue column in continuation lines, the assembler issues an error message and the whole statement is not processed.

  4. One or more spaces must separate the operand from the remarks.
  5. A comma after an operand indicates more operands follow.
  6. The last operand requires no comma following it, but using a comma does not cause an error.
  7. You do not need to use the same format when you code a macro instruction as you use when you code the corresponding macro prototype statement.
  8. Continued comments for a macro with an operand list that terminates in a null operand are recognized provided each continued comment begins in the same or later column as the preceding line's comment.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014