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 / hardik dave
Use SYNCSORT and you will get all matching records in one
file and all those non matching records in another. Just
read more on SYNCSORT and you will be clear.
| Is This Answer Correct ? | 3 Yes | 6 No |
Post New Answer View All Answers
What are the different rules for performing sort operation?
Why would you use find and get rather than to obtain?
how do you reference the variable unblock file formats from cobol programs
How to remove 2 duplicate records and copy only one using job control language?
What are literals?
) How do u handle errors in BMS macro?
What are the rules of the move verb?
how to convert the recors form vsam file to db2 table tru file aid
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
What are the cobol coding sheets?
What are all the divisions of a COBOL program?
explain sorting techniques in cobol program?
What is link edit in cobol?
Explain about different table spaces.