View previous topic :: View next topic
|
Author |
Message |
SVazifdar
New User
Joined: 21 Apr 2006 Posts: 14
|
|
|
|
Can PDS members be deleted using ADRDSSU from disk, tape, or when migrated ?
Sample JCL
Code: |
//STEP010 EXEC PGM=ADRDSSU,REGION=0M,COND=(0,NE)
//PDSLIB DD DSN=PDS1.LIB.STEP1,DISP=OLD
//SYSPRINT DD SYSOUT=*
//DELETE DD DUMMY
//SYSIN DD *
DUMP DATASET('PDS1.LIB.STEP1(MBR00001)')) -
OUTDD(DELETE) DELETE
//*
|
Any help would be appreciated. Thanks. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
You can delete pds members only when the PDS resides on dasd
jcl snippet
Code: |
//jobname JOB ....
//*45678901234567890
//stepnam EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DELETE your.pds.dataset(Your_member)
/*
//* |
when the dataset resides on tape or is migrated ml1/ml2 You have to bring it back to dasd
using the proper utility/HSM command |
|
Back to top |
|
|
SVazifdar
New User
Joined: 21 Apr 2006 Posts: 14
|
|
|
|
Thanks for your reply Enrico. But I would like to know if PDS members could be deleted using ADRDSSU.
Thank you, |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
Back to top |
|
|
SVazifdar
New User
Joined: 21 Apr 2006 Posts: 14
|
|
|
|
Thank for the reply and I have made a note of it.
But I have another question related to ADRDSSU - can it be used to delete datasets(files) that are backed up on tape ? Sample JCL would help.
Thanks |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
can it be used to delete datasets(files) that are backed up on tape |
Please clarify this - as written, it could have multiple meanngs.
For example, do you want to delete fiels from an already existing backup archive? Do you want to delete files that are being backed up to tape from their current "home" on dasd? |
|
Back to top |
|
|
SVazifdar
New User
Joined: 21 Apr 2006 Posts: 14
|
|
|
|
Clarification:
Delete files(backed up on tape) from an already existing backup archive.
Thank you for helping. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
IDCAMS does everything that you want to do ! |
|
Back to top |
|
|
|