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
What is report-item in COBOL?
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
What is the difference between comp and comp-3 usage?
how do you reference the variable block file formats from cobol programs
Write the code implementing the perform … varying.
Write down the divisions of cobol program?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
How do you define a variable of comp-1 and comp-2?
Whats the difference between search & search ALL?
What is a scope terminator give example?
how do you reference the printer file formats from cobol programs
What are all the divisions of a COBOL program?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
What is the difference between PIC 9.99 and PIC9v99?
What are the cobol coding sheets?