Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Delete mebers from production PDS usinf other pds

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
laxmi16

New User


Joined: 02 Jul 2012
Posts: 3
Location: india

PostPosted: Tue Jul 17, 2012 12:01 pm    Post subject: Delete mebers from production PDS usinf other pds
Reply with quote

I have the list of members(100) to be deleted in one PDS. I need to delete that list from production pds .
CAn i have the single job to delete them from production pds.
Back to top
View user's profile Send private message

Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Tue Jul 17, 2012 12:54 pm    Post subject:
Reply with quote

Did you try using IEHPROGM, IDCAMS, yes - what happened? No, please try now.
Back to top
View user's profile Send private message
laxmi16

New User


Joined: 02 Jul 2012
Posts: 3
Location: india

PostPosted: Tue Jul 17, 2012 2:01 pm    Post subject:
Reply with quote

I tried IDCAMS. In my jcl i am giving the statement as
DELETE 'MY.Prd.PDS(TEST1)'
DELETE ''MY.PRD.PDS(TEST2)'
..
...

like wise i am repeating the 100 entries..It worked.

Instead of repeating the member names in the PDS.. Is there any way if i mention
input as - My personal PDS which have the members to be deleted from production PDS.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1753
Location: Bloomington, IL

PostPosted: Tue Jul 17, 2012 3:41 pm    Post subject:
Reply with quote

There are a number of solutions using *Sort, Rexx, and/or compiled-language programs. The one that immediately comes to my mind is:
  1. Create a skeleton with your DELETE control card using a variable and enclosed in a DOT construct.
  2. Write a little Rexx to read your list of members to delete into an ISPF table.
  3. Tailor the skeleton and SUBMIT the resulting JCL.

but, as I say, there are others. Search this board, and choose the one with which your skills make you comfortable.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Jul 18, 2012 6:10 am    Post subject:
Reply with quote

Hello,

Before doing Anything to Any dataset, you need to make sure there is a current backup!

Create a playground dataset and test your process.

Then schedule a time when the Production dataset will not be in use, create a backup, and run the process.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am
No new posts JCL to delete component in a package sundaram.naveen Compuware & Other Tools 14 Tue Nov 29, 2016 6:21 pm
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm
No new posts Delete record or Reset RC code using ... mpawan Compuware & Other Tools 4 Tue Jul 26, 2016 3:52 pm
No new posts Delete VSAM File Records amitc23 CICS 6 Sun Apr 10, 2016 10:10 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us