Sample code: Match/merge two files



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Re: 2-file match/merge sample code

Postby enrico-sorichetti » Wed Jan 04, 2012 4:01 pm

This is working for sorted files only rt?


because that' s the normal logic for matching

but i dont have sorted files can u please tell me for unsorted files


well... You are out of luck then,
sort the files before trying to match them

use a bit of logic puleez...
if the files are <not sorted> how will You determine a match between the first record of the first file
and the 10000000th record of the second one ???
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: 2-file match/merge sample code

Postby arun_be » Mon Jun 03, 2013 8:12 pm

Hi dick, I am the beginner in mainframe. How can i download the attached code. Please help me.
arun_be
 
Posts: 1
Joined: Mon Jun 03, 2013 7:59 pm
Has thanked: 0 time
Been thanked: 0 time

Re: 2-file match/merge sample code

Postby Akatsukami » Mon Jun 03, 2013 8:42 pm

Now that you have made one post, it ought to be available to you.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1058
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: 2-file match/merge sample code

Postby dick scherrer » Tue Jun 04, 2013 11:19 pm

Hello and welcome to the forum,

Try to download this again and if there are any problems, please post a reply here.

Good luck :)

d
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: 2-file match/merge sample code

Postby welcomed1234 » Mon Mar 17, 2014 4:36 pm

Hi all,

I have just registered for Mainframe forum.

Thanks
welcomed1234
 
Posts: 1
Joined: Mon Mar 17, 2014 4:02 pm
Has thanked: 0 time
Been thanked: 0 time

Re: 2-file match/merge sample code

Postby dick scherrer » Mon Mar 17, 2014 6:56 pm

Hello and welcome to the forum,

Are you interested in downloading the sample code or have you some other question?
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

Previous

Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post