View previous topic :: View next topic |
Author |
Message |
csk Beginner
Joined: 20 Sep 2006 Posts: 11 Topics: 5
|
Posted: Wed Sep 20, 2006 9:35 am Post subject: Copying recently changed 10 members of a PDS into another. |
|
|
Hi,
Known that its possible using IEBCOPY to copy members from a PDS into
another PDS, also selectively,
Is it really possible to copy just the recently changed 20 members from a PDS into another using this utility? Or can it be done through any other way out?
Thanks for ur help in advance. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Wed Sep 20, 2006 9:53 am Post subject: |
|
|
csk,
Try this
Code: |
//STEP0010 EXEC PGM=FILEAID
//SYSPRINT DD SYSOUT=*
//SYSLIST DD SYSOUT=*
//DD01 DD DSN=Your Input PDS,
// DISP=SHR
//DD01O DD DSN=YOUR OUTPUT PDS,
// DISP=SHR
//SYSIN DD *
$$DD01 COPY CHANGED=(byy/bmm/bdd,eyy/emm/edd)
/*
|
The changed syntax is
Code: |
CHANGED=(from-date,to-date)
(,to-date)
(from-date)
from-date
The following date formats are valid:
YY/MM/DD
YY/MM
YY
|
So in the above code
Code: |
byy/bmm/bdd - begin year/begin month/ begin day
eyy/emm/edd - end year/end month/end day
|
Hope this helps...
Cheers
kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
csk Beginner
Joined: 20 Sep 2006 Posts: 11 Topics: 5
|
Posted: Wed Sep 20, 2006 10:27 am Post subject: |
|
|
Thanks Kolusu.. Will try this and let you know the results...
Also could you pls confirm if this is not at all possible with the IEBCOPY utility. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Wed Sep 20, 2006 10:39 am Post subject: |
|
|
Quote: |
Also could you pls confirm if this is not at all possible with the IEBCOPY utility.
|
csk,
It is NOT possible with IEBCOPY alone. However you can have a rexx which will read the LMSTATS and dynamically build the IEBCOPY control statements.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
csk Beginner
Joined: 20 Sep 2006 Posts: 11 Topics: 5
|
Posted: Thu Sep 21, 2006 1:30 am Post subject: |
|
|
Thanks Kolusu...
Used the FILEAID option which you had mentioned. It was helpful.
Thanks,
csk. |
|
Back to top |
|
|
|
|