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 do u handle errors in BMS macro?
What is report-item in COBOL?
What is static and dynamic call in cobol?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
What are 77 levels used for?
How do get the result of your program directly on your pc?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
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.
How do you reference the following file formats from cobol programs?
what is amode(24), amode(31), rmode(24) and rmode(any)?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
Whats the difference between search & search ALL?
What are the different data types in cobol?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?