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


TERM exit processing

HLASM Programmer's Guide
SC26-4941-06

You can use the TERM exit to override the effect of the TERM assembler option. The exit does this by indicating to the assembler that it opens the terminal data set and does all terminal output processing. Then, as each terminal record is passed to the exit, the exit can decide whether to write the record, and where to write the record. For instance, the exit can write the terminal records to a different data set to which the assembler normally writes them.

The TERMINAL exit is not called if you specify the NOTERM assembler option. If you want to process the terminal records in the exit, but you do not want the assembler to write the records to the normal output data set, you can do one of these:
  • Instruct the assembler to discard the terminal records by setting the exit return code.
  • Suppress the terminal output by doing this:
    z/OS
    Provide a //SYSTERM DD DUMMY JCL statement.
    CMS
    Issue a FILEDEF SYSTERM DUMMY command.
    z/VSE
    Assign SYSTERM to IGN.
  • Instruct the exit to issue an OPEN return code of 4.

The assembler calls the TERMINAL exit with the following request types:

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014