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

Deletion of Specific Members from PDS


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

New User


Joined: 28 Dec 2007
Posts: 13
Location: Chennai

PostPosted: Wed Sep 16, 2009 4:19 pm
Reply with quote

Hi,

I want to delete a list of members from a PDS. I wish to provide this list as a PS. Before deletion, wanted to take a backup of the members too.
Can anyone suggest how to do this?

Thanks.
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Wed Sep 16, 2009 4:44 pm
Reply with quote

Quote:
Before deletion, wanted to take a backup of the members too.

Why not skip the unwanted members while taking backup? This should achieve the same for you right?

Look for IEBCOPY examples in the forum.

Quote:
I wish to provide this list as a PS
Code a small rexx to generate IEBCOPY EXCLUDE statement.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Sep 16, 2009 4:58 pm
Reply with quote

I would take a backup of ALL members before deleting anything, just to be safe icon_lol.gif
Back to top
View user's profile Send private message
Meena Chandran

New User


Joined: 28 Dec 2007
Posts: 13
Location: Chennai

PostPosted: Wed Sep 16, 2009 5:03 pm
Reply with quote

Yeah you are rite. BUt, This is a kind of cleanup.. so i have to delete from a particular PDS..

For my future reference i wanna to take a backup in my PDS.

Since the list of members and the PDS may keep on change, i wish to list the members in a PS.
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Wed Sep 16, 2009 6:15 pm
Reply with quote

Allocate the backup PDS and then use LMMOVE for each member name present in your PS
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
This topic is locked: you cannot edit posts or make replies. Construct new record using specific f... DFSORT/ICETOOL 6
No new posts list pds members name starting with xyz CLIST & REXX 11
No new posts Select a DB2 value in a specific deci... DB2 4
No new posts Need to find a specific STRING COBOL Programming 11
Search our Forums:

Back to Top