Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

File comparison in cobol

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
kalyan_lc5

New User


Joined: 06 Jul 2006
Posts: 9

PostPosted: Thu Mar 18, 2010 5:59 pm    Post subject: File comparison in cobol
Reply with quote

There are two flat input files present in the program. The program is about comparison of keys of both the files. The requirement is both the files can have duplicate key values. How do I go ahead with the comparison of keys if the scenario is N:N ?

Kindly give us the solution to implement N:N logic?

Kalyan
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8120
Location: East Dubuque, Illinois, USA

PostPosted: Thu Mar 18, 2010 6:06 pm    Post subject:
Reply with quote

Quote:
Kindly give us the solution to implement N:N logic?
Unless you are willing to pay the going rates (and 1000 U.S. dollars per day is not uncommon), please do not ask for code. People who respond here are paid for their professional work product, which is what you want when you ask for code.

Besides, this is a HELP forum, not a DO-YOUR-JOB-FOR-YOU forum. What have you coded so far?
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 Mar 18, 2010 10:22 pm    Post subject:
Reply with quote

Hello,

Before "slinging code" there must be a clear definition of how the many-to-many must be handled. If there are 10 repititions of key "A" in file1 and 13 repititions of key "A" in file2, what should happen?

How is it decided which 3 are "not matched"? Are they all considered to be a match? Some other rule?

Until the rules are defined, code should not be attempted. . .
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Fri Mar 19, 2010 1:18 am    Post subject:
Reply with quote

What is "N:N"?
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10276
Location: italy

PostPosted: Fri Mar 19, 2010 1:41 am    Post subject: Reply to: File comparison in cobol
Reply with quote

I guess a typo for M:N logic
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: Fri Mar 19, 2010 1:42 am    Post subject:
Reply with quote

Hello,

I suspect it is for many-to-many. . . Instead of 1:N or N:1, ta daa N:N. . .
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts SSH - known_hosts file configuration vasanthz All Other Mainframe Topics 2 Wed Jul 26, 2017 2:10 am
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us