I have the requirement to compare the two files and pick up
the matching records.
File 1. file2
23 32
32 13
34 15
35 36
36 35
43
Get the matching records from this 2 files to out file. how
you will do this in cobol program?
Answer Posted / pradeep
read all the records of file1 and load into array
read the record of second file one at a time and search for
the value in the array(table) using search
if the value of the file matches with the value in the table
then write that record to output file
| Is This Answer Correct ? | 1 Yes | 8 No |
Post New Answer View All Answers
explain sorting techniques in cobol program?
What is the difference between PIC 9.99 and 9v99 in COBOL?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
What do you understand by psb and acb?
HOw can I get the negative sign while deduct high value from low value
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
What is length is cobol?
What is the Purpose of Pointer in the string?
What is amode(24)?
Mention the guidelines to write a structured cobol program?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
What rules are followed by the search verb.
Can you please let me know the centre name of INS certification in Kolkata.