Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Single step utility for compare and update members b/n 2 pds
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 User


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

PostPosted: Fri Apr 29, 2016 6:39 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Fri Apr 29, 2016 7:30 pm    Post subject: Reply to: Single step utility for compare and update members b/n 2 pds
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

Senior Member


Joined: 21 Sep 2010
Posts: 1610
Location: NY,USA

PostPosted: Fri Apr 29, 2016 8:59 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Fri Apr 29, 2016 9:13 pm    Post subject: Reply to: Single step utility for compare and update members b/n 2 pds
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

New User


Joined: 01 Sep 2015
Posts: 96
Location: Switzerland

PostPosted: Sat Apr 30, 2016 12:12 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts TAPE VERIFY utility?? MrExtraordinare JCL & VSAM 3 Fri Dec 09, 2016 10:57 pm
No new posts -913/-911 Deadlock during UPDATE stat... NoSleep319 DB2 5 Fri Nov 18, 2016 12:37 am
No new posts How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm
No new posts Updating Cursor row withour using FOR... chandan.inst DB2 15 Tue Nov 08, 2016 11:17 am
No new posts Two Selects in a single select query Rohit Umarjikar DB2 1 Fri Nov 04, 2016 8:46 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us