Sample cobol program to compare two files
Hi Srinivas, The above solution holds good for after sorting both the files with equal number of records in both the files.
Let me give you an example file 1 file 2 1 3 2 1 3 4 If the files are in above format, then you may miss some records almost all. Cheers Ashwin. Hi Ashwin Good idea. Hi, Well, for such a file matching Logic, don't You think.. BTW, this topic has been discussed many times, please search. Hello, Quote:. So you get one Syntax Error and you are already throwing it all away and going with Cobol? Use your brain man! Get out the Syncsort manual and look at the syntax for Joinkeys.
Fix the syntax and try again. I often get many syntax errors before I get it right. I don't quit after one. I also don't flounder on the dock asking for help. I Jump in the water and swim. The solution provided is logically correct and syntactically correct for Dfsort. Just a few minor changes and you are good to go. Posted: Thu Mar 29, pm. At a glance, i suspect your code will not work for all conditions. It will work for many and if improperly tested, may give the impression that it is working correctly.
Quick References. View previous topic :: View next topic. Posted: Mon Dec 11, am. How to validate two files in cobol, such that the resultant file will contain only matching data from two files. If file 1 contains 1,2,4,6,8 and file 2 contains 1,6,3,2,7. Back to top. Posted: Mon Dec 11, pm. Hi Rohit, I can see contents of the files are not in sorted order
0コメント