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
 

 

Tool to compare OMVS Directories

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IBM Tools
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    Post subject: Tool to compare OMVS Directories
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Wed Feb 02, 2011 3:14 pm    Post subject: Reply to: Tool to compare OMVS Directories
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    Post subject: Reply to: Tool to compare OMVS Directories
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Wed Feb 02, 2011 9:47 pm    Post subject: Reply to: Tool to compare OMVS Directories
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

Site Director


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

PostPosted: Thu Feb 03, 2011 6:37 am    Post subject:
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    Post subject: Reply to: Tool to compare OMVS Directories
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

Site Director


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

PostPosted: Thu Feb 03, 2011 9:19 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> IBM Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts member list compare jzhardy TSO/ISPF 6 Fri May 12, 2017 3:18 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 Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm


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