Posted: Thu Jan 06, 2011 6:14 am Post subject: dataset with DISP=(NEW,CATLG,KEEP).
Hi,
Request you to help me to understand the DISP=(NEW,CATLG,KEEP). There is a job step with output file having DISP=(NEW,CATLG,KEEP). This job step has abended so, the output dataset will be KEPT but not CATALOGUED. Am I right? So, when I restart this job step the dataset will be CATALOGUED. Now, what will happen to the data that was already written to output file during abend?
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
Posted: Thu Jan 06, 2011 12:06 pm Post subject: Re: dataset with DISP=(NEW,CATLG,KEEP).
mf_user wrote:
Hi,
Request you to help me to understand the DISP=(NEW,CATLG,KEEP). There is a job step with output file having DISP=(NEW,CATLG,KEEP). This job step has abended so, the output dataset will be KEPT but not CATALOGUED. Am I right? So, when I restart this job step the dataset will be CATALOGUED. Now, what will happen to the data that was already written to output file during abend?
mf_user,
Where did you get that information from? Read the 2 and 3rd links carefully
More typical is (NEW,CATLG,DELETE). It has been many years since since any system i've supported will allow (NEW,CATLG,KEEP). Almost always KEEP is only used for previously existing datasets.
Also, if the dataset might exist at the beginning of a new run, care should be taken to make sure the dataset is deleted before an attempt is made to create a new one. _________________ All the best,
Posted: Fri Jan 07, 2011 3:39 am Post subject: Re: dataset with DISP=(NEW,CATLG,KEEP).
mf_user wrote:
This job step has abended so, the output dataset will be KEPT but not CATALOGUED. Am I right?
KEEP is somewhat mis-leading. IF SMS is active at your shop, then for new SMS-managed data sets, KEEP implies CATLG. And most of the shops are SMS-managed these days. So, if you are talking about non-SMS Shops then you are right otherwise not. _________________ Regards,
Anuj
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