View previous topic :: View next topic
|
Author |
Message |
ramprakashn
New User
Joined: 13 Sep 2013 Posts: 5 Location: India
|
|
|
|
My requirement is to compare two PDS files (OLD and NEW) with around 70000 members and update the OLD one with the updated members.
i.e., If the members are not present in the NEW one then they should be copied to OLD one
Also, If the members are updated in the NEW one they should be updated in OLD one also
I know that this can be achieved using REXX or combination of SUPERCE and REXX.. But I just want to know if there is any utility available readymade where we can just give the two PDS members and give the options so that it will take of the rest. |
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
Personally, I've never heard of such a program. There are issues.
Load Modules - It is essentially impossible to compare two load modules for equal/not equal because of the way they are structured on disk. Perhaps 10 years ago I wrote a program that attempted to compare two load modules on a CSECT to CSECT basis and got loads of false not equals. Not only that, but it is more difficult to copy a load module than most people appreciate. I've done it for practice, but that was long ago, and I'm not sure I could do it any more.
Source - It would be relatively easy to create a program like you propose for source. It would take me a month or two assuming I had the incentive to write such a program. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
apart the obvious typo
Quote: |
If the members are not present in the NEW one then they should be copied to OLD one |
NEW and OLD should exchanged
use a bit of sets logic ...
the NEW is the master ...
so why not just copy from the OLD to the NEW the missing members
IEBCOPY can do that
You might have to do a couple of renames but faster than comparing
or You will have to explain better the updated meaning |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3048 Location: NYC,USA
|
|
|
|
Quote: |
i.e., If the members are not present in the NEW one then they should be copied to OLD one |
What you want to be copied if nothing is in NEW?
Quote: |
Also, If the members are updated in the NEW one they should be updated in OLD one also |
What is the source for their updates? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
the source of the updates is irrelevant to the <merge> logic |
|
Back to top |
|
|
Willy Jensen
Active Member
Joined: 01 Sep 2015 Posts: 712 Location: Denmark
|
|
|
|
I've never come across such a utility either. It would be usefull. But you you got to set a couple of rules beforehand. Source members with ISPF stats are pretty straightforward. Load modules have a date stamp, but what do you do with 2 modules with the same date? And what about duplicate names where one have stats and the other not? And so on and so forth. I wrote a REXX program once, with a simulate option so I could check before do.
Willy |
|
Back to top |
|
|
|