A cobol program to read a file , match it with other if.
If match occurs then write it to an output file. If no
match then no need to write it.Error log created by program
to track any error.

Answer Posted / ajay kumar ande

procedure:
1. take 4 seq. files,read two files
2.if rec1(key1)=rec2(key2)
write record3
else
write record4

or using jcl
pgm=iebcmpr
sysut1 dd dsn=dataset1
sysut2 dd dsn=dataset2
sysin dd *
compare typorg=ps/po

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

For rewrite, why is it mandatory that file needs to be opened?

623


How many sections are there in data division in COBOL?

678


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

914


Discuss about changing dataset name in proc.

761


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

823






Explain how you can characterize tables in cobol?

638


What is cobol?

745


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?

700


Which Search verb is equivalent to PERFORM…VARYING?

685


Name the divisions, which are available in a cobol program?

685


how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)

1931


how to refer the data field?

1812


What is perform what is varying?

709


What is the difference between next sentence and continue in cobol programing language?

712


What is the difference between external and global variables in COBOL?

813