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

Tool to compare OMVS Directories


IBM Mainframe Forums -> IBM Tools
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
arunkumar atr

New User


Joined: 03 Dec 2008
Posts: 19
Location: Chennai

PostPosted: Wed Feb 02, 2011 3:02 pm
Reply with quote

Hi all,

Is there any tool or IBM command to compare two directories in OMVS, and display the differences in tree structure?

We tried "diff" and "dircmp" commands, since the differences are very large we are not able to sort it out.

Kindly share your ideas for this.

Regards,
Arun
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Feb 02, 2011 3:14 pm
Reply with quote

if the differences are large,
whatever tool You will use, You will face issues

if You just need to find a match/nomatch the -q flag will do that
Back to top
View user's profile Send private message
arunkumar atr

New User


Joined: 03 Dec 2008
Posts: 19
Location: Chennai

PostPosted: Wed Feb 02, 2011 6:22 pm
Reply with quote

Thanks for ur reply.

I didnt find -q flag with either diff nor dircmp commands, can u pls help me in this..
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Feb 02, 2011 9:47 pm
Reply with quote

sorry my bad... I just checked and the -q flag is not supported

omvs utilities are a murky issue..
I assumed a direct GNU origin, but unfortunately it is not so.

all depends on what kind of comparison You want to carry on

a reasonable approach would be to redirect a ls -l -r of both directories to two files
after that write a script rexx,perl,python, anything You are comfortable with
to process the two files pruning them of the excess info

but if the directories contain lots of elements, lots of differences...
You will always face a disturbing task

if the task is repetitive it might be worth to search and install a better suited tool
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Feb 03, 2011 6:37 am
Reply with quote

Hello,

Don't know about omvs, but on Unix systems, we used to issue an LS on each directory and write the outputs to separate files rather than the terminal. Then we'd compare these 2 files.

If the number of files in both directories is very large and you expect many differences, you could use more than 1 LS command with a mask/wildcard (i.e. a* then b* or whatever would work better for you.

If there is expected to be a very high number of mis-matches, what good in the compare? We did this when a mis-match was an error and needed to be resolved. We didn't compare "things" that we knew did not match.
Back to top
View user's profile Send private message
arunkumar atr

New User


Joined: 03 Dec 2008
Posts: 19
Location: Chennai

PostPosted: Thu Feb 03, 2011 6:41 pm
Reply with quote

Thanks Dick.. If we cant find out the tool to compare, then manual checking(ls) is the last option. Hope we will get IT..
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Feb 03, 2011 9:19 pm
Reply with quote

Hello,

Quote:
If we cant find out the tool to compare
If you do as i suggested, it will be an automated compare.

I question what value is a compare with many, many expected differences. . .
Back to top
View user's profile Send private message
mtaylor

Active User


Joined: 20 Feb 2009
Posts: 108
Location: Kansas City

PostPosted: Sun Feb 06, 2011 8:26 pm
Reply with quote

The general tree diffing problem is still open (directory structure is a tree), there are no 'good' solutions for this. Most research in this area is carried out under the 'xml diffing' since xml is also a tree structure. That said, there are a couple of utilities around for xml diffing, Formating the directory listings as xml then run thru an xml diff may prove a fruitful approach.
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 -> IBM Tools

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 3
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Compare two files with a key and writ... SYNCSORT 3
No new posts Compare latest 2 rows of a table usin... DB2 1
Search our Forums:

Back to Top