logic for comparing 2 files which are not in sorted order



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

logic for comparing 2 files which are not in sorted order

Postby Mrutyunjay » Wed Dec 01, 2010 2:55 pm

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.
Mrutyunjay
 
Posts: 2
Joined: Tue Aug 10, 2010 11:57 am
Has thanked: 0 time
Been thanked: 0 time

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

Postby GuyC » Wed Dec 01, 2010 3:00 pm

3.12 SuperC Compare Utility ? http://publib.boulder.ibm.com/infocente ... supere.htm
If you choose Batch you can get the jcl generated.
I can explain it to you, but i can not understand it for you.
GuyC
 
Posts: 315
Joined: Tue Aug 11, 2009 3:23 pm
Has thanked: 1 time
Been thanked: 4 times

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

Postby enrico-sorichetti » Wed Dec 01, 2010 7:33 pm

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 !
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 165 times

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

Postby enrico-sorichetti » Wed Dec 01, 2010 11:48 pm

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
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 165 times

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

Postby dick scherrer » Thu Dec 02, 2010 3:28 am

Hello,

If the files are not in the same order, the results of the compare will be questionable at best. . .
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

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

Postby NicC » Thu Dec 02, 2010 10:55 am

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.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

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

Postby Anuj Dhawan » Fri Dec 03, 2010 4:55 pm

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?
Anuj
Anuj Dhawan
 
Posts: 273
Joined: Mon Feb 25, 2008 3:53 am
Location: Mumbai, India
Has thanked: 6 times
Been thanked: 4 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post