HLASM Programmer's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Error handling

HLASM Programmer's Guide
SC26-4941-06

Exit Failure Handling: You can signal an exit failure for any call to the exit by setting the return code field in the Exit Parameter List to 20. When the assembler receives this return code it issues message ASMA940U, and stops the assembly. You can provide the assembler with additional information to insert in the message text by placing the information in the error buffer pointed to by error buffer pointer, and the length of the information in the error buffer length.

If the exit sets the return code field in the Exit Parameter List to any value other than those described in Table 1, the assembler issues message ASMA940U and stops the assembly.

Note: For CLOSE requests, the assembler only checks for a return code of 20; it treats all other values as a successful completion.

User Error Handling: You can instruct the assembler to produce an error message after any call to the exit by placing information in the error buffer pointed to by error buffer pointer, and the length of the information in the error buffer length. You can indicate the severity of the message by placing the severity code in the error severity field. The message is issued as a normal assembler message and, as such, can be suppressed using the FLAG assembler option.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014