I have the requirement to compare the two files and pick up
the matching records.
File 1. file2

23 32
32 13
34 15
35 36
36 35
43

Get the matching records from this 2 files to out file. how
you will do this in cobol program?

Answer Posted / sreejith

firt read file1 move each record to table. at the end of
file1 start read file2. for each record read from file2
compare that record with all the elements from table. if it
match write that record to the output file. same procedure
follow for all the records from file2

Is This Answer Correct ?    16 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between next sentence and continue in cobol programing language?

707


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

680


How do you reference the following file formats from cobol programs?

693


how do you define single dimensional array and multidimensional array in your cobol?

667


What are the various section in data division and briefly explain them.

692






Why did you choose to work with ibm mainframe cobol programming?

627


What are the pertinent COBOL

2041


What is static and dynamic call in cobol?

590


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

3713


What is amode(24)?

680


What are the pertinent COBOL commands?

2621


What is difference between static and dynamic call in cobol?

772


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1520


How do get the result of your program directly on your pc?

1878


example for sub strings ? and refernce modifications whit output pls

1843