karthik3883
New User
Joined: 19 Oct 2007 Posts: 37 Location: chennai
|
|
|
|
Hi,
I need a help in one of the logic .
I want to copy the members of dataset A.B,C to one dataset D and whenever any member in datasets A,B,C got updated ,I have to run this newly job to refresh the dataset D.
Also i have certain member in dataset E which will be ther in a,B,C as well and while copying to D this should be excluded
REgards
Karthik |
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
I have done something similar in the past, all of it based on the output of ISRSUPC compare.
From the output you can find - from the summary data at the end of the report.
a) which members have changed, or now exist in the new PDS but not the old.
b) which members no longer exist in the new PDS but remain in the old PDS.
Using DFSORT you can generate IEBCOPY SELECT statements, or IDCAMS DELETE statements as required.
If I recall correctly you only need include the lines which start **.
Then check each output dataset generated by DFSORT for valid data and conditionally execute the IEBCOPY or IDCAMS steps. |
|