Question:
How do I trace a sort that is abending?
Answer:
Add OPTION DIAG
Internal SORT, means SORT called in an application program: // JOB SORT // OPTION SYSPARM='DIAG' << activating trace . // DLBL/TLBL/ASSGN statements . // EXEC program . --------------------------------------------------------------------------- External SORT, means execution with EXEC SORT: // JOB SORT . // DLBL / TLBL / ASSGN // EXEC SORT . SORT FIELDS=... .... RECORD TYPE= INPFIL BLKSIZE=..... OUTFIL BLKSIZE=..... OPTION DIAG,PRINT=ALL << activating trace END