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 

Batch Jcl to Empty PDS

 
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 May 18, 2009 10:16 am    Post subject: Batch Jcl to Empty PDS Reply with quote

Hi,

I did search on this topic before Posting this, but cudnt get any info.

We have a process that will create Temp members in 16 PDS. But at the end of the process we need to cleanup the 16 PDS.

I was wondering if we have some simple Jcl that empties any specified PDS.

I was told the best option is to Delete / Create the PDS.

Thanks
_________________
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
kolusu
Site Admin
Site Admin


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

PostPosted: Mon May 18, 2009 10:35 am    Post subject: Reply with quote

arvibala,

Check the smart DFSORT trick "Delete all members of a PDS" here

http://www.ibm.com/systems/support/storage/software/sort/mvs/tricks/index.html
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Mon May 18, 2009 1:05 pm    Post subject: Re: Batch Jcl to Empty PDS Reply with quote

arvibala wrote:

I was told the best option is to Delete / Create the PDS.
Alternatively, if this is all one job or rexx, use temporary data sets. If the only reason that these data sets exist is to hold this temporary data, then there is no need to have them take up space on disk and backups.
_________________
New members are encouraged to read the How To Ask Questions The Smart Way FAQ at http://www.catb.org/~esr/faqs/smart-questions.html.
Back to top
View user's profile Send private message Visit poster's website
arvibala
Beginner


Joined: 12 Feb 2008
Posts: 142
Topics: 67

PostPosted: Tue May 19, 2009 8:48 am    Post subject: Reply with quote

Thanks All. Never thought this will be so complex. Expected a simple utility to solve this Laughing .
_________________
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
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