Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 602
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: 10409
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: 1841
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: 10409
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: 195
Location: Denmark

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 Xpediter: STEP OVER cobol section Auryn Compuware & Other Tools 0 Thu Feb 22, 2018 9:30 pm
No new posts Need Guidance regarding UPDATE query Poha Eater DB2 3 Mon Feb 12, 2018 11:35 pm
No new posts Utility for search operation Gopalakrishna551 TSO/ISPF 11 Wed Jan 03, 2018 11:07 am
No new posts Compare two PS files using ICE TOOL f... SENTHIL MURUGAAN DFSORT/ICETOOL 5 Sun Dec 24, 2017 1:26 pm
No new posts Conversion of DLI update Jobs as BMP ... Gopinath Shanmugam IMS DB/DC 3 Wed Dec 20, 2017 12:02 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us