> I have used > > //SORTIN DD DSN=&&X,DISP=(OLD,PASS) > //SORTOUT DD DSN=&&X<DISP=(OLD,PASS),VOL=REF=*.SORTIN
Clark Morris, Please don't ever do that with a COPY operation. For SORT operation you would be OK to refer the same file but for a copy operation it is not recommended as it can cause lost or incorrect data and we do document that restriction. For a copy application, the SORTIN data set should not be the same as the SORTOUT data set or any OUTFIL data set because this can cause lost or incorrect data or unpredictable results. https://www.ibm.com/docs/en/zos/2.4.0?topic=statement-general-coding-notes Thanks, Kolusu DFSORT Development IBM Corporation ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN