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 

Explicitly Deleting Temp datasets

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


Joined: 12 Feb 2008
Posts: 142
Topics: 67

PostPosted: Mon Jun 23, 2008 8:50 am    Post subject: Explicitly Deleting Temp datasets Reply with quote

Hi,

Many of our Jobs create Temprorary Flat files, like in Intermediate Sort steps, we need these files for debuging so these are created in DASD. But since these will not be needed after our next run, these needs to be deleted before our next run. Instead of having a Dummy step that deletes these files, I heard we have a feature in CA7 which does this automatically. Can any one share those features?
_________________
Arvind
"You can make a difference with your smile. Have that with you always"
Back to top
View user's profile Send private message Yahoo Messenger
Terry_Heinze
Supermod


Joined: 31 May 2004
Posts: 391
Topics: 4
Location: Richfield, MN, USA

PostPosted: Mon Jun 23, 2008 10:06 am    Post subject: Reply with quote

If I remember correctly, it's a step (PROC) entitled UCC11 or CA11 and is placed at the start of the production JCL. It deletes all data sets that are defined in your job as DISP=(NEW,CATLG). Usually the systems programmers take care of that for you.
_________________
....Terry
Back to top
View user's profile Send private message Send e-mail
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Wed Jun 25, 2008 7:49 am    Post subject: Reply with quote

Why not delete them at the end of the batch job. That way the space is freed up immediately and available for other jobs to use, and also reduces the chances of Sx37 abends.
_________________
If it's true that we are here to help others,
then what exactly are the others here for ?
Back to top
View user's profile Send private message
Terry_Heinze
Supermod


Joined: 31 May 2004
Posts: 391
Topics: 4
Location: Richfield, MN, USA

PostPosted: Wed Jun 25, 2008 2:36 pm    Post subject: Reply with quote

As expat says, deleting them at the end of the job WILL free up DASD sooner. The downside is that rerunning a portion of a successfully completed job (yes, sometimes that's desireable) becomes more difficult. In either case, shops that have CA-7 will nearly always include the CA-11 step at the beginning of a production job stream. After all, it can't hurt to try to delete a non-existent file.
_________________
....Terry
Back to top
View user's profile Send private message Send e-mail
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