The VARY ABENDTRAP command provides abend dumps that are based on a return code being set in a given module.
Module name, return code, or instance will be syntax checked. If an incorrect module name is used, the Abend Trap must be turned off and reset with the correct name. The same process is used if an incorrect return code or instance is used.
After the Abend Trap is set, it stays in effect until the trap is sprung or until it is turned off by issuing V TCPIP,TN3270,TELNET,ABENDTRAP,OFF. To change the trap, the current trap must first be turned off.
Authorization is through the user's RACF® profile containing the MVS™.VARY.TCPIP.TELNET.ABENDTRAP definition for ABENDTRAP. The definition can contain a wildcard at the TELNET or TCPIP level (for example MVS.VARY.TCPIP.**).