MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DISP=(NEW,PASS,CATLG) Retains the Existing value

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
Dinesh Kumar
Beginner


Joined: 12 Oct 2004
Posts: 13
Topics: 6

PostPosted: Wed Aug 30, 2006 10:15 am    Post subject: DISP=(NEW,PASS,CATLG) Retains the Existing value Reply with quote

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
Back to top
View user's profile Send private message Yahoo Messenger
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Wed Aug 30, 2006 10:48 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group