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 Member


Joined: 30 Nov 2013
Posts: 507
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: 10242
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: 1679
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: 10242
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

Active User


Joined: 01 Sep 2015
Posts: 121
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
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts HLIST Utility In Batch Virendra Shambharkar TSO/ISPF 4 Fri Apr 07, 2017 3:38 pm
No new posts Compare two files and subtract values ameetmund DFSORT/ICETOOL 7 Fri Mar 31, 2017 3:35 pm
No new posts fuzzy compare Martylin JCL & VSAM 9 Thu Mar 30, 2017 2:45 pm
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm


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