Coding CMS Macros

Coding conventions for CMS macros are the same as those for all assembler language macros. If a macro statement overflows to a second line, you must use a continuation character in column 72. The continuation line must begin in column 16. No blanks may appear between operands. Incorrect coding of any macro results in assembler errors and MNOTEs.

The z/VM: CMS Macros and Functions Reference contains a list of the possible error conditions that may occur during the execution of CMS macros, and the associated return codes. These return codes are always placed in register 15.

The macros that produce these return codes have ERROR= operands, which allow you to specify the address of an error handling routine so that you can check for particular errors during macro processing. If an error occurs during macro processing (with the exception of CMSSTOR macro processing) and no error address is provided, execution continues at the next sequential instruction following the macro. (If an error occurs during CMSSTOR macro processing and no error address is provided, the program abends.)