Generating a Language Environment dump with TERMTHDACT

The TERMTHDACT runtime option produces a dump during program checks or abnormal terminations. You must use TERMTHDACT(DUMP) in conjunction with TRAP(ON) to generate a Language Environment dump. You can use TERMTHDACT to produce a traceback, Language Environment dump, or user address space dump when a thread ends abnormally because of an unhandled condition of severity 2 or greater. If this is the last thread in the process, the enclave goes away. A thread terminating in a non-POSIX environment is analogous to an enclave terminating. For information on enclave termination, see z/OS Language Environment Programming Guide for 64-bit Virtual Addressing Mode .

The TERMTHDACT suboptions QUIET, MSG, TRACE, DUMP, UAONLY, UATRACE, UADUMP, and UAIMM control the level of information available. Following are the suboptions, the levels of information produced, and the destination of each.

Table 1. TERMTHDACT suboptions, level of information, and destinations
Suboption Level of Information Destination
QUIET No information No destination.
MSG Message Stderr
TRACE Message and Language Environment dump containing only a traceback Message goes to stderr. Traceback goes to CEEDUMP file.
DUMP Message and complete Language Environment dump Message goes to stderr. Language Environment dump goes to CEEDUMP file.
UAONLY SYSMDUMP, SYSABEND dump, or SYSUDUMP depending on the DD card used in the JCL in z/OS. You will get a system dump of your user address space if the appropriate DD statement is used.
Note: A Language Environment dump is not generated.
Language Environment generates a U4039 abend which allows a system dump of the user address space to be generated. For z/OS, the system dump is written to the ddname specified.
UATRACE Message, Language Environment dump containing only a traceback, and a system dump of the user address space Message goes to stderr. Traceback goes to CEEDUMP file. Language Environment generates a U4039 abend which allows a system dump of the user address space to be generated. For z/OS, the system dump is written to the ddname specified.
UADUMP Message, Language Environment dump, and SYSMDUMP, SYSABEND dump, or SYSUDUMP depending on the DD card used in the JCL in z/OS. Message goes to stderr. Language Environment dump goes to CEEDUMP file. Language Environment generates a U4039 abend which allows a system dump of the user address space to be generated. For z/OS, the system dump is written to the ddname specified.
UAIMM Language Environment generates a system dump of the original abend/program interrupt of the user address space. You will get a system dump of your user address space if the appropriate DD statement is used. After the dump is taken by the operating system, Language Environment condition manager continues processing. Message goes to stderr. User address space dump goes to ddname specified for z/OS.
The TRACE and UATRACE suboptions of TERMTHDACT use these dump options:
The DUMP and UADUMP suboptions of TERMTHDACT use these dump options: