MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Mass Copy of all PDS members

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
Martin
Beginner


Joined: 20 Mar 2006
Posts: 133
Topics: 58

PostPosted: Mon Jul 24, 2006 11:16 am    Post subject: Mass Copy of all PDS members Reply with quote

Hi All,

I need to copy 10000 memebers from one PDS to another. could any one let me know what's the easiest way to do this?

- Martin
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12377
Topics: 75
Location: San Jose

PostPosted: Mon Jul 24, 2006 11:25 am    Post subject: Reply with quote

Martin,

Try this

Code:

//STEP0100 EXEC PGM=IEBCOPY                     
//SYSPRINT DD SYSOUT=*                         
//I1       DD DSN=YOUR INPUT PDS,
//            DISP=SHR                         
//O1       DD DSN=YOUR OUTPUT PDS,
//            DISP=(NEW,CATLG,DELETE),                   
//            UNIT=SYSDA,                       
//            SPACE=(CYL,(X,Y,Z),RLSE),     
//            DCB=(LRECL=80,RECFM=FB,DSORG=PO)       
//SYSIN    DD *                                 
COPY1 C O=O1,I=((I1,R))                       
/* 

X = primary allocation
Y = secondary allocation
Z = no: of directory blocks (1 dir block = 5 members)


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
bablack
Beginner


Joined: 04 Dec 2002
Posts: 71
Topics: 0
Location: Little Falls, NJ

PostPosted: Tue Jul 25, 2006 1:36 pm    Post subject: Reply with quote

If you are copying all the members in your input PDS into a new output PDS (like in Kolusu's example), it would be much faster to use DFSMSdss (ADRDSSU) or FDRCOPY to copy the PDS.

If you are merging the members into an existing PDS that already has members, or if you need to select members from the input PDS, then IEBCOPY can be used.
_________________
Bruce A. Black
Senior Software Developer
Innovation Data Processing
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group