[Default] On 2 Sep 2021 18:37:59 -0700, in bit.listserv.ibm-main skol...@us.ibm.com (Sri h Kolusu) wrote:
>> 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. Not to mention that it would be a waste of time even if somehow it did work. It is in the same category as having 2 DDs pointing to the same file with both OPENed OUTPUT. Clark Morris > >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 ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN