Suppose, file A has 100 records and file B has 500 records. We
want to write records common to both A and B into file C and
records which are present only in either A or B into another file D.
What should be the logic of Cobol program to achieve this?
Answer Posted / shrik
Sort both file A and B using the Key in ascending order..
Then read File A and B..
Compare records read frm A and B
If found Equal write into File C (common records)
If NOT write into file D
| Is This Answer Correct ? | 6 Yes | 8 No |
Post New Answer View All Answers
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
What are the pertinent COBOL commands?
Explain the configuration section of a cobol program with examples of syntax.
Define static linking and dynamic linking.
) How do u handle errors in BMS macro
Why would you use find and get rather than to obtain?
Explain what you understand by passing by value.
how do you reference the rrds file formats from cobol programs
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
What is amode(31)
What is rmode(any) ?
HOw can I get the negative sign while deduct high value from low value
What is the difference between Global and External Variables?
What is the difference between comp and comp-3 usage?
how do you reference the variable unblock file formats from cobol programs