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

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

1760


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

897


What is an in line perform? When would you use it? Anything else you wish to say about it.

845


) How do u handle errors in BMS macro?

1630


There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.

1177


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

953


How to print 10 to 1 if the input have only 10 digit number?

1038


how to refer the data field?

1996


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

3958


How arrays can be defined in COBOL?

843


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?

1420


What is the difference between Global and External Variables?

946


What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

921


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

938


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

1897