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


Please Help Members By Posting Answers For Below Questions

how do you reference the variable unblock file formats from cobol programs

987


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.

2223


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

939


how to refer the data field?

1979


How do u write test cases?

1806






I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1395


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8654


i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

1964


What is the difference between Global and External Variables?

902


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1726


What is the difference between goback, stop run and exit program in cobol?

1210


What are various search techniques in cobol? Explain.

845


Explain how you can characterize tables in cobol?

803


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17498


Which is not true about evaluate statement

2072