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 / kalone
First load both the files into 2 arrays and then sort them
on say ASC criteria and then take the first element from 1
file and compare with the element of other file , if
matches write into Outfile ,like wise we can keep on
reading & comparing till we get all the matching values in
the outfile.
| Is This Answer Correct ? | 6 Yes | 5 No |
Post New Answer View All Answers
What do you understand by psb and acb?
Can we redefine the field of x(200) to less than 200?
What is the problem of ordered sequential files access?
Write a program that uses move corresponding.
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
Write a cobol program making use of the redefine clause.
Name the sections present in data division.
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
What is length is cobol?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
Difference between cobol and cobol-ii?
What rules are followed by the search verb.
What is the difference between Call and a Link?