What are the guidelines to create a Trace to an abending SORT?

Document ID : KB000055156
Last Modified Date : 14/02/2018
Show Technical Document Details

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