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
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
What is an in line perform? When would you use it? Anything else you wish to say about it.
) How do u handle errors in BMS macro?
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.
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
How to print 10 to 1 if the input have only 10 digit number?
how to refer the data field?
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.
How arrays can be defined in COBOL?
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?
What is the difference between Global and External Variables?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
how do you reference the fixed unblock file formats from cobol programs
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?