Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8165
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: 10327
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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us