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
 

 

Copy first 100 members to another PDS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Copy first 100 members to another PDS
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7251

PostPosted: Tue Jul 19, 2011 7:55 pm    Post subject: Reply to: Copy first 100 members to another PDS
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

Site Director


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

PostPosted: Wed Jul 20, 2011 9:10 am    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Jul 20, 2011 12:27 pm    Post subject:
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    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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm


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