Page 1 of 1

logic for comparing 2 files which are not in sorted order

PostPosted: Wed Dec 01, 2010 2:55 pm
by Mrutyunjay
Hi Friends,

Compare 2 unsorted files and write into the other file ..

Please help me for implementing the logic for comparing 2 files which are not in sorted order.

Re: logic for comparing 2 files which are not in sorted order

PostPosted: Wed Dec 01, 2010 3:00 pm
by GuyC
3.12 SuperC Compare Utility ? http://publib.boulder.ibm.com/infocente ... supere.htm
If you choose Batch you can get the jcl generated.

Re: logic for comparing 2 files which are not in sorted order

PostPosted: Wed Dec 01, 2010 7:33 pm
by enrico-sorichetti
tell us exactly what You want to compare ...
and what result You want to obtain...

post a sample of the two input files and the expected output !

Re: logic for comparing 2 files which are not in sorted order

PostPosted: Wed Dec 01, 2010 11:48 pm
by enrico-sorichetti
do not double post, or as in this case ( probably ) click once
and do not hit the back button of Your browser, most often it will cause a double post

it' s bothering to have to read two threads to understand what is going on

I already asked for additional information here and I will not switch to Your other post on the same issue

Re: logic for comparing 2 files which are not in sorted order

PostPosted: Thu Dec 02, 2010 3:28 am
by dick scherrer
Hello,

If the files are not in the same order, the results of the compare will be questionable at best. . .

Re: logic for comparing 2 files which are not in sorted order

PostPosted: Thu Dec 02, 2010 10:55 am
by NicC
As per my reply to the duplicate thread...

The logic is the same as for when the files are in sorted order BUT... first you have to sort the files.

Re: logic for comparing 2 files which are not in sorted order

PostPosted: Fri Dec 03, 2010 4:55 pm
by Anuj Dhawan
Mrutyunjay wrote:Compare 2 unsorted files and write into the other file ..
Okay, Your question is in JCL part of the Forum, so possibly you are looking for some JCL/Job executing some utility - so what are your choices?

And is it an interview question? If not, why do yo wnat to avoid sorting the files on some key?