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
For rewrite, why is it mandatory that file needs to be opened?
How many sections are there in data division in COBOL?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
Discuss about changing dataset name in proc.
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
Explain how you can characterize tables in cobol?
What is cobol?
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?
Which Search verb is equivalent to PERFORM…VARYING?
Name the divisions, which are available in a cobol program?
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...)
how to refer the data field?
What is perform what is varying?
What is the difference between next sentence and continue in cobol programing language?
What is the difference between external and global variables in COBOL?