|
View previous topic :: View next topic
|
| Author |
Message |
rahul4u
New User
Joined: 27 Apr 2006 Posts: 7
|
|
|
|
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 |
|
 |
shrivatsa Warnings : 1 Active User

Joined: 17 Mar 2006 Posts: 174 Location: Bangalore
|
|
|
|
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 |
|
 |
shrivatsa Warnings : 1 Active User

Joined: 17 Mar 2006 Posts: 174 Location: Bangalore
|
|
|
|
//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 |
|
 |
Jag
New User

Joined: 07 Dec 2005 Posts: 30 Location: India
|
|
|
|
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 |
|
 |
rahul4u
New User
Joined: 27 Apr 2006 Posts: 7
|
|
|
|
| thnk u all |
|
| Back to top |
|
 |
|
|