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 / pradeep
read all the records of file1 and load into array
read the record of second file one at a time and search for
the value in the array(table) using search
if the value of the file matches with the value in the table
then write that record to output file
| Is This Answer Correct ? | 1 Yes | 8 No |
Post New Answer View All Answers
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
Write a program to explain size error.
What kind of error is trapped by on size error option?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
Define static linking and dynamic linking.
What rules are to be followed while using the corresponding options?
what is the use of outrecord?
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly
What type of SDLC u followed? Why?
What is the use of intialize verb?
When is inspect verb is used in cobol?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
What is Pic 9v99 Indicates in COBOL?
How many bytes S(8) comp field occupy and its maximum value?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?