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 / suresh

sort the file by using key...and perform matching logic

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how do you reference the printer file formats from cobol programs

665


Write a program to explain size error.

677


What is the difference between comp and comp-3?

704


How are the next sentence and continue different from each other?

766


what is the use of outrecord?

1771






How you can characterize tables in cobol?

718


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

1588


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

684


How arrays can be defined in COBOL?

663


What are different data types in cobol?

689


What are the pertinent COBOL commands?

2626


What are the different rules to perform a Search?

619


can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

1960


What are the rules of the move verb?

707


) How do u handle errors in BMS macro

1510