Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 7315

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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts XMITIP sends it out. Can it copy on l... Rommel Dayon Rustia IBM Tools 0 Tue Sep 05, 2017 10:16 am
No new posts Historical/statistical details for me... elixir1986 TSO/ISPF 13 Wed Aug 30, 2017 9:02 pm
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm
No new posts copy SEQ to PDS and create stats steve-myers JCL & VSAM 7 Thu Apr 27, 2017 1:15 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us