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

Copy first 100 members to another PDS


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

New User


Joined: 05 Apr 2006
Posts: 5
Location: India

PostPosted: Tue Jul 19, 2011 7:45 pm
Reply with quote

Hi,

In my input PDS have 800 members. How can I copy first 100 members into newly created PDS and second 100 members i.e. 101 to 200 into another PDS.

Can I do it thru IEBCOPY. Looking for valuable response.

Thanks,
Sudip
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Jul 19, 2011 7:55 pm
Reply with quote

Did you try IEBCOPY? Then you get that bit answered.

Or you want to avoid typing 100 copy statements?

Little bit of rexx. Directory list. Generate required statements. Split the statements into 8 or 9 (unless you know enough rexx to do that already) with the editor. Put the statements inside JCL executing IEBCOPY. Submit.
Ask someone here to put the kettle on for you.

I'd backup the PDS first, if you are going to be deleting members from it and don't have a backup already. Never any fun to delete the "wrong" 100 members. Even less fun without a backup.
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: Wed Jul 20, 2011 9:10 am
Reply with quote

Hello,

Yes, you certainly want a backup - even if only for insurance.

Suggest you do not write into the original pds at all. . .
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Jul 20, 2011 12:27 pm
Reply with quote

Perhaps if you explained WHY you would need to do this, then perhaps someone could come up with an idea
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 VB to VB copy - Full length reached SYNCSORT 8
No new posts Need COBOL COPY Help in MVS Environment COBOL Programming 4
No new posts Duplicate several members of/in one l... JCL & VSAM 7
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts DB2 Table - Image copy unload IBM Tools 2
Search our Forums:

Back to Top