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

how to copy one pds to another pds


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

New User


Joined: 27 Apr 2006
Posts: 7

PostPosted: Tue May 16, 2006 5:43 pm
Reply with quote

hi

how to copy one pds to another pds.as well as

how to copy one ps to anothe ps.

with sample program .can u expalin plz


thnk u very much
Back to top
View user's profile Send private message
shrivatsa
Warnings : 1

Active User


Joined: 17 Mar 2006
Posts: 174
Location: Bangalore

PostPosted: Tue May 16, 2006 6:39 pm
Reply with quote

You can use this JCl to copy PS to PS

//COPY EXEC PGM=FILEAID
//SYSPRINT DD SYSOUT=A
//SYSLIST DD SYSOUT=A
//DD01 DD DSN=xxxx.xxxx.xxxxx,DISP=SHR
//DD01O DD DSN=xxxx.xxxx.xxxx,DISP=(,CATLG,DELETE),
// UNIT=SYSD@,LABEL=RETPD=90,
// DCB=(BLKSIZE=58200,LRECL=202,RECFM=FB),
// SPACE=(58200,(14000,135),RLSE,,ROUND)
//SYSIN DD *
$$DD01 COPY
/*
Back to top
View user's profile Send private message
shrivatsa
Warnings : 1

Active User


Joined: 17 Mar 2006
Posts: 174
Location: Bangalore

PostPosted: Tue May 16, 2006 6:42 pm
Reply with quote

//COPY EXEC PGM=FILEAID
//SYSPRINT DD SYSOUT=A
//SYSLIST DD SYSOUT=A
//DD01 DD DSN=xxxx.xxxx.xxxxx,DISP=SHR
//DD01O DD DSN=xxxx.xxxx.xxxx,DISP=(,CATLG,DELETE),
// UNIT=SYSD@,LABEL=RETPD=90,
// DCB=(BLKSIZE=58200,LRECL=202,RECFM=FB),
// SPACE=(58200,(14000,135,800),RLSE,,ROUND)
//SYSIN DD *
$$DD01 COPY MEMBERS=ALL
/*


It will copy all the members of the PDS to another PDS
Back to top
View user's profile Send private message
Jag

New User


Joined: 07 Dec 2005
Posts: 30
Location: India

PostPosted: Wed May 17, 2006 10:48 pm
Reply with quote

Hi friends,

There are JCL utilities present in order to copy one PDS to other PDS and One seqential file to other ..This is the most Easiest way to get the things done...

IEBGENR is used to copy sequential files...
IEBCOPY is used to Copy one PDS to other PDS and you have many options like Copy a perticular member(s) or exclude a perticular member(s) fropm PDS..

You can get this Syntax in any JCL book or in net..

I hope you are clear..If not feel free to ask..

Cheers,
Jag
Back to top
View user's profile Send private message
rahul4u

New User


Joined: 27 Apr 2006
Posts: 7

PostPosted: Wed May 17, 2006 11:03 pm
Reply with quote

thnk u all
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 Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts DB2 Table - Image copy unload IBM Tools 2
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
Search our Forums:

Back to Top