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 / vinod
if f1 = f2
move file1-rec to file3-rec
write file3-rec
if f1 < f2
move file2-rec to file4-rec
write file4-rec.
if f1 > f2
move file1rec to file4-rec
write file4-rec
| Is This Answer Correct ? | 2 Yes | 6 No |
Post New Answer View All Answers
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
What kind of error is trapped by on size error option?
) How do u handle errors in BMS macro?
What the difference is between continue and next sentence?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
Explain how you can characterize tables in cobol?
What are all the divisions of a COBOL program?
) what is the difference between AID and HANDLE AID?
explain sorting techniques in cobol program?
Write some characteristics of cobol as means of business language.
What is the difference between next sentence and continue in cobol programing language?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
In which area will you utilize 88 level items in cobol?
how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)