View previous topic :: View next topic |
Author |
Message |
stansaraczewski Beginner
Joined: 06 Sep 2006 Posts: 44 Topics: 13 Location: Southern California
|
Posted: Wed Feb 04, 2009 7:32 pm Post subject: adding members to a PDS with Cobol and maintaining stats |
|
|
We'd like to copy members from one PDS to another and not lose the Created and Updated dates... it isn't working with cobol. Any ideas ? It should be a batch process. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Wed Feb 04, 2009 8:04 pm Post subject: |
|
|
stansaraczewski,
Why not use the plain old IEBCOPY?
Code: |
//STEP0100 EXEC PGM=IEBCOPY
//SYSPRINT DD SYSOUT=*
//IN DD DSN=Your source pds,
// DISP=SHR
//OUT DD DSNAME=your target pds,
// DISP=SHR
//SYSIN DD *
COPYOPER COPY OUTDD=OUT,INDD=IN
SELECT MEMBER=MEMBER1
SELECT MEMBER=MEMBER2
.....
SELECT MEMBER=MEMNNNN
//*
|
_________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
stansaraczewski Beginner
Joined: 06 Sep 2006 Posts: 44 Topics: 13 Location: Southern California
|
Posted: Thu Feb 05, 2009 11:08 am Post subject: |
|
|
No good reason not to... thanks for the suggestion. |
|
Back to top |
|
|
|
|