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 / anupam
EVALUATE KEY1 > KEY2 ALSO KEY2 < KEY1
WHEN FALSE ALSO FALSE
READ F1 NEXT RECORD
READ F2 NEXT RECORD
WHEN TRUE ALSO FALSE
READ FILE1 NEXT RECORD
WHEN FALSE ALSO TRUE
READ FILE2 NEXT RECORD
END-EVALUATE
| Is This Answer Correct ? | 3 Yes | 10 No |
Post New Answer View All Answers
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
i need a small 3d program using inline and outline.
What are 77 levels used for?
When is inspect verb is used in cobol?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
Why would you use find and get rather than to obtain?
how do you reference the variable block file formats from cobol programs
How are the next sentence and continue different from each other?
how to convert the recors form vsam file to db2 table tru file aid
Mention the guidelines to write a structured cobol program?
) what is the difference between AID and HANDLE AID?
What is the difference between next sentence and continue in cobol programing language?
What is the local-storage section?
Can we change the password using ALTER? anyone tried and changed?
What is the difference between binary search and sequential search?