Run INDXR on the sorted dataset to create an NX extension table. View the NX table in PRTAB (or use LISTR with OPTYPE 'SCAN') to check that all the scans are there.
>TASK 'INDXR' >INFILE '' >CPARM(3)= -1 >GO