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
 
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: 10375
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: 10375
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 Compare VSAM files using DFSORT pshongal DFSORT/ICETOOL 5 Thu Nov 23, 2017 10:24 am
No new posts Compare and COPY using DFSORT pshongal DFSORT/ICETOOL 3 Fri Nov 17, 2017 9:49 am
No new posts Mainframe scheduling tool ddhar Compuware & Other Tools 2 Wed Sep 27, 2017 12:48 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm

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