IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Single step utility for compare and update members b/n 2 pds


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ramprakashn

New User


Joined: 13 Sep 2013
Posts: 5
Location: India

PostPosted: Fri Apr 29, 2016 3:43 pm
Reply with quote

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
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Fri Apr 29, 2016 6:39 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Fri Apr 29, 2016 7:30 pm
Reply with quote

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
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3049
Location: NYC,USA

PostPosted: Fri Apr 29, 2016 8:59 pm
Reply with quote

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? icon_rolleyes.gif
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? icon_question.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Fri Apr 29, 2016 9:13 pm
Reply with quote

the source of the updates is irrelevant to the <merge> logic
Back to top
View user's profile Send private message
Willy Jensen

Active Member


Joined: 01 Sep 2015
Posts: 712
Location: Denmark

PostPosted: Sat Apr 30, 2016 12:12 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts REASON 00D70014 in load utility DB2 6
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts Submit multiple jobs from a library t... JCL & VSAM 14
Search our Forums:

Back to Top