Coding the DFHEIRET macro for assembler language programs

The DFHEIRET macro performs epilog code to release the working storage of the application program.

  • For AMODE(24) and AMODE(31) programs, the DFHEIRET macro calls the EPILOG program.
  • For AMODE(64) programs, the DFHEIRET macro calls the AMODE(64) EPILOG program.
You can specify the following operand for the DFHEIRET macro:
RCREG
Specify the register into which the return code is placed. If you do not specify a value, a return code is not passed back to the caller of the program. There is no default value.

The translator inserts the DFHEIRET macro, with no parameters specified, immediately before the END statement (unless you specify the NOEPILOG translator option to prevent this). END must be in uppercase for the translator to recognize it. If the DFHEIRET macro is invoked before this translator-inserted DFHEIRET macro, the translator-inserted macro does not generate any code.

Related information