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
enrico-sorichetti
Global moderator
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Skillset: tso,rexx,assembler,pl/i,storage,mvs,os/390,z/os,
Referer: www.ibmmainframes.com

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

arun_be
Posts: 1
Joined: Mon Jun 03, 2013 7:59 pm
Skillset: COBOL, JCL, CICS, REXX
Referer: By surfing

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.

User avatar
Akatsukami
Global moderator
Posts: 1058
Joined: Sat Oct 16, 2010 2:31 am
Skillset: Rexx, JCL, DB2/SQL, TSO/ISPF, PL/I
Referer: ibmmainframes
Location: Bloomington, IL
Contact:

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
dick scherrer
Global moderator
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am

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

welcomed1234
Posts: 1
Joined: Mon Mar 17, 2014 4:02 pm
Skillset: mainframe
Referer: jobsite

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

User avatar
dick scherrer
Global moderator
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am

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.


  • Similar Topics
    Replies
    Views
    Last post