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 

dataset with DISP=(NEW,CATLG,KEEP).

 
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
mf_user
Intermediate


Joined: 01 Jun 2003
Posts: 372
Topics: 105

PostPosted: Thu Jan 06, 2011 6:14 am    Post subject: dataset with DISP=(NEW,CATLG,KEEP). Reply with quote

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?
Code:

//SYSOUT    DD DSN=XXXX1.XXXX2.XXX3.XXXXX4.XX5(+1),           
//             DISP=(NEW,CATLG,KEEP),                         
//             MGMTCLAS=MGMT0001,                             
//             AVGREC=K,                                       
//             SPACE=(133,(10,5),RLSE),                       
//             VOL=(,,,3),                                     
//             DCB=(DSORG=PS,BLKSIZE=0000,LRECL=133,RECFM=FBA) 


Please advise.

Thanks.
_________________
MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Thu Jan 06, 2011 12:06 pm    Post subject: Re: dataset with DISP=(NEW,CATLG,KEEP). Reply with quote

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

Topics have matches for: Keep in JCL Reference Manual

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
papadi
Supermod


Joined: 20 Oct 2009
Posts: 594
Topics: 1

PostPosted: Thu Jan 06, 2011 4:04 pm    Post subject: Reply with quote

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,

di
Back to top
View user's profile Send private message
Anuj Dhawan
Intermediate


Joined: 19 Jul 2007
Posts: 298
Topics: 7
Location: Mumbai,India

PostPosted: Fri Jan 07, 2011 3:39 am    Post subject: Re: dataset with DISP=(NEW,CATLG,KEEP). Reply with quote

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
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