Posted: Wed Aug 30, 2006 10:15 am Post subject: DISP=(NEW,PASS,CATLG) Retains the Existing value
Hi,
We are using a JCL wherein we create a temporary dataset and use it as follows.
1. In STEP1, copied a file NEWFILE1 to a temporary dataset (&&TEMP) with DISP = (NEW,PASS).
2. In STEP2, the temporary dataset (&&TEMP) with DISP = (OLD,PASS) was copied onto NEWFILE3.
3. In STEP3, copied a file NEWFILE2 to the same temporary dataset (&&TEMP) with DISP = (NEW,PASS).
4. In STEP4, temporary dataset (&&TEMP) with DISP = (OLD,PASS) was copied onto NEWFILE4.
The result:
i.) No JCL error and MAXCC=0.
ii.) But both the files NEWFILE3 and NEWFILE4 had the contents of NEWFILE1. Inspite of mentioning &&TEMP to be NEW in STEP3, the temporary dataset retains the old contents (contents of NEWFILE1).
iii)We have no JCL error for step 3
The question:
Why is that both NEWFILE3 and NEWFILE4 had the contents of NEWFILE1? _________________ Thanks & Rgds
Dinesh
Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
Posted: Wed Aug 30, 2006 10:48 am Post subject:
You never deleted the &&TEMP from STEPs 1 and 2 but PASSed it. Even though you created another &&TEMP in STEP3, the first one was in the "passed dataset queue" and was reused in STEP4. If you look at the volumes the two &&TEMPs were created on and read from it will be clearer. _________________ Regards,
Bill Dennis
Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum