When enhanced diagnostics is enabled by setting ENHANCED=YES in the SYNCMAC definition or passed as a PARM, MFX will capture significant debugging information while the sort is running.
If a qualifying event exists, MFX will dynamically allocate a $ORTDIAG file and print the captured debugging information. In case of a JOIN operation, a separate $ORTDIAG file is created for each sort with a qualifying event.
A qualifying event is defined as an ABEND (except B37, D37, E37, 04E, 13E or 722), or when a memory message (WER039A, WER153A, WER314A, WER391A) is issued.
Passing ENHANCED=FORCED as a PARM forces the capture of the data and the printing the information to $ORTDIAG regardless of whether a qualifying event occurs.