IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Can PDS members be deleted using ADRDSSU ?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
SVazifdar

New User


Joined: 21 Apr 2006
Posts: 14

PostPosted: Mon Feb 25, 2008 11:24 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Feb 26, 2008 1:07 am
Reply with quote

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
View user's profile Send private message
SVazifdar

New User


Joined: 21 Apr 2006
Posts: 14

PostPosted: Tue Feb 26, 2008 2:05 am
Reply with quote

Thanks for your reply Enrico. But I would like to know if PDS members could be deleted using ADRDSSU.

Thank you,
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Tue Feb 26, 2008 2:23 am
Reply with quote

Hello,

Quote:
But I would like to know if PDS members could be deleted using ADRDSSU
No. ADRDSSU works on a dataset or a volume - not a member or member list.

If you need to delete some member(s), use the posted jcl.

You might also read a bit about adrdssu here:
http://publib.boulder.ibm.com/infocenter/zoslnctr/v1r7/index.jsp?topic=/com.ibm.zsysprog.doc/zsysprog_74.html
Back to top
View user's profile Send private message
SVazifdar

New User


Joined: 21 Apr 2006
Posts: 14

PostPosted: Tue Feb 26, 2008 2:36 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Tue Feb 26, 2008 2:52 am
Reply with quote

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
View user's profile Send private message
SVazifdar

New User


Joined: 21 Apr 2006
Posts: 14

PostPosted: Tue Feb 26, 2008 3:01 am
Reply with quote

Clarification:

Delete files(backed up on tape) from an already existing backup archive.

Thank you for helping.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Feb 26, 2008 3:28 am
Reply with quote

Usually In storage management jargon

HSM takes/does/makes backups
the management of backups is done thru the proper HSM commands

ADRDSSU dumps copies restores datasets / volumes...
with the option of
renaming the destination dataset
deleting the source dataset

there is no provision to manage the dumps taken by ADRDSSU
( the only function that can be performed on dumps is a copydump operation )

NO... what You ask cannot be done

here is a pointer to the docs
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DGT2S251/CCONTENTS?SHELF=DGT2BK61&DN=SC26-7402-07&DT=20070126125044
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Feb 26, 2008 1:17 pm
Reply with quote

IDCAMS does everything that you want to do !
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Duplicate several members of/in one l... JCL & VSAM 7
No new posts list pds members name starting with xyz CLIST & REXX 11
No new posts REXX editmacro to compare two members... CLIST & REXX 7
No new posts How do I SFTP a ADRDSSU file from mai... IBM Tools 4
No new posts Easy way to delete selected members f... IBM Tools 12
Search our Forums:

Back to Top