Abends

ON-units do not have the opportunity to handle abends that arise during a sort operation.

When there is an abend, the DFSORT ESTAE exit intercepts the abend and performs various clean-ups and recoveries. Informational dumps and messages are produced as appropriate. The abend is then percolated and eventually the Language Environment ESTAE exit intercepts it. Condition handling then continues as described in Introduction to Language Environment condition handling.

By the time the Language Environment ESTAE exit intercepts the abend, the SORT has been terminated. Language Environment moves the current resume cursor to the return point where SORT was invoked and reflects the deletion of stack frames (and associated load modules) after the SORT invocation. Any user condition handlers associated with these stack frames (those following the SORT invocation) do not get control.

When running DFSORT (or an OEM SORT function), it is recommended that the TRAP(ON), or TRAP(ON,SPIE) Language Environment runtime option be specified. This will ensure that the Language Environment ESPIE is available to process expected internal Language Environment® program interrupts.