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
 

 

Can PDS members be deleted using ADRDSSU ?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Can PDS members be deleted using ADRDSSU ?
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10232
Location: italy

PostPosted: Tue Feb 26, 2008 1:07 am    Post subject: Reply to: Can PDS members be deleted using ADRDSSU ?
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    Post subject: Reply to: Can PDS members be deleted using ADRDSSU ?
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

Site Director


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

PostPosted: Tue Feb 26, 2008 2:23 am    Post subject:
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    Post subject: Reply to: Can PDS members be deleted using ADRDSSU ?
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

Site Director


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

PostPosted: Tue Feb 26, 2008 2:52 am    Post subject:
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    Post subject: Reply to: Can PDS members be deleted using ADRDSSU ?
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10232
Location: italy

PostPosted: Tue Feb 26, 2008 3:28 am    Post subject: Reply to: Can PDS members be deleted using ADRDSSU ?
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: 8593
Location: Back in jolly old England

PostPosted: Tue Feb 26, 2008 1:17 pm    Post subject:
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    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 Copying Panvalet members to PDS LOGESHWARAN K CA Products 4 Mon Mar 06, 2017 10:45 am
No new posts Single step utility for compare and u... ramprakashn JCL & VSAM 5 Fri Apr 29, 2016 3:43 pm
No new posts Differences between copying members b... E.LAI TSO/ISPF 8 Wed Mar 30, 2016 12:35 pm
No new posts ADRDSSU Restore - How to prevent repl... Lipi.Prasannan JCL & VSAM 12 Fri Oct 02, 2015 12:13 am
No new posts Count the number of rows updated or d... Chetan Kumar DB2 6 Tue Jul 14, 2015 7:57 pm


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