View previous topic :: View next topic
|
Author |
Message |
laxmi16
New User
Joined: 02 Jul 2012 Posts: 3 Location: india
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Did you try using IEHPROGM, IDCAMS, yes - what happened? No, please try now. |
|
Back to top |
|
|
laxmi16
New User
Joined: 02 Jul 2012 Posts: 3 Location: india
|
|
|
|
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 |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
There are a number of solutions using *Sort, Rexx, and/or compiled-language programs. The one that immediately comes to my mind is:
- Create a skeleton with your DELETE control card using a variable and enclosed in a DOT construct.
- Write a little Rexx to read your list of members to delete into an ISPF table.
- 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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|