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

which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1239


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

1987


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

1886


how to refer the data field?

1994


What is rmode(24)

902


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1963


How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

860


How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?

939


Which mode is used to operate the sequential file?

930


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

1078


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

997


what are decleratives in cobol?

2002


IF I mention stop run in CICS what happens?

2093


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

867


How do you differentiate between cobol and cobol-ii?

859