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
Write the code implementing the perform … varying.
What type of SDLC u followed? Why?
What are the access modes of START statement?
What is the difference between binary search and sequential search?
What are literals?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
Can you please let me know the centre name of INS certification in Kolkata.
What is a scope terminator give example?
Write a cobol program making use of the redefine clause.
What is the difference between PIC 9.99 and 9v99 in COBOL?
What are different data types in cobol?
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
Difference between array and sub-script ?
What are the various section in data division and briefly explain them.