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

Copy an entire library with all of its members


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

New User


Joined: 03 Jul 2007
Posts: 2
Location: Israel

PostPosted: Tue Jul 31, 2007 11:00 am
Reply with quote

Hello there,

Can you help me with a statement that will copy an entire library with all of her members into a new one?

I need to compress a cics library so before the compression i want to copy the library and her members (with all the info) to another library.

Thanks,
SysProg
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Tue Jul 31, 2007 12:36 pm
Reply with quote

Sysprog,

If your shop has FILEAID, you could use the follwoing -

(1) Goto 3.3 (UTILITIES -> COPY). Provide FROM and TO dataset names.
(2) In the next screen, provide the attributes of TO dataset or let as it is.
(3) At the bottom of the screen, give N for DISPLAY MEMBER SELECTION LIST.
Back to top
View user's profile Send private message
SysProg

New User


Joined: 03 Jul 2007
Posts: 2
Location: Israel

PostPosted: Tue Jul 31, 2007 4:06 pm
Reply with quote

Hey Murali,

About the fileaid - thanks, I know this process and I did it.
But I need a Job that does the same so I could run it automatically without any human interference.

Do you familiar with a job like that?

Thanks again
SysProg
Back to top
View user's profile Send private message
shankar.v

Active User


Joined: 25 Jun 2007
Posts: 196
Location: Bangalore

PostPosted: Tue Jul 31, 2007 5:24 pm
Reply with quote

// EXEC PGM=IEBCOPY
//IN DD DSN=IN,DISP=SHR
//OUT DD DSN=OUT,DISP=(NEW,CATLG),
// DCB=(IN),SPACE=(CYL,(1,1,10),RLSE)
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
COPY OUTDD=OUT,INDD=IN

Give the directory blocks in SPACE parameter as required.
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: Tue Jul 31, 2007 8:25 pm
Reply with quote

Hello,

After you run the IEBCOPY, it is advisable to verify the content of your copy before doing anything to the original pds. Going into tso/ispf 3.4 and browsing the dataset would be sufficient.
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 Calling an Open C library function in... CICS 1
No new posts Need COBOL COPY Help in MVS Environment COBOL Programming 4
No new posts Submit multiple jobs from a library t... JCL & VSAM 14
No new posts Duplicate several members of/in one l... JCL & VSAM 7
Search our Forums:

Back to Top