TRY error-handling code can include statements that invoke program dumps. However, such dumps might not be useful because the system cuts back the process stack to the point where the TRY statement occurs before executing the error-handling code. Thus, if the TRY statement invoked one or more procedures, then any variables declared by those procedures would be lost before the error-handling code invokes the program dump.
To obtain a more useful program dump, you can set the FAULT and DSED bits in the OPTION task attribute when the process is first initiated. (For an explanation of the difference between the FAULT and DSED bits, refer to Understanding Internal and External Causes later in this section.) When these bits are set, and a termination condition occurs, the system initiates a program dump. After the program dump finishes, the system cuts back the process stack to the TRY statement and invokes the error-handling code.

