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
A table has two indexes defined. Which one will be used by the SEARCH?
how to refer the data field?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
Give some examples of command terminators?
Difference between cobol and cobol-ii?
What are the different rules of SORT operation?
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
what are decleratives in cobol?
What are the different open modes available in cobol?
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?