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
What are different data types in cobol?
What is a SSRANGE and NOSSRANGE?
What is cobol?
how do you reference the fixed unblock file formats from cobol programs
What is the problem of ordered sequential files access?
What is static and dynamic call in cobol?
i want a program using by if, evaluate , string, unstring, perform, occurs?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
HOw can I get the negative sign while deduct high value from low value
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?
Define cobol?
What are all the divisions of a COBOL program?
what is search and searchall?what is the diffrence between them?give an best example?
What is length is cobol?
Discuss about changing dataset name in proc.