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 / sreejith

firt read file1 move each record to table. at the end of
file1 start read file2. for each record read from file2
compare that record with all the elements from table. if it
match write that record to the output file. same procedure
follow for all the records from file2

Is This Answer Correct ?    16 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between structured cobol programming and object alternativelyiented cobol?

752


Define cobol?

858


What is cobol?

744


What rules are followed by the search verb.

635


how do you reference the esds vsam file formats from cobol programs

629






which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1022


What is Pic 9v99 Indicates in COBOL?

725


What are different data types in cobol?

687


What is the difference between PIC 9.99 and PIC9v99?

779


Are you comfortable in cobol or jcl?

643


I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.

2008


Can you please let me know the centre name of INS certification in Kolkata.

1715


How do you reference the fixed block file formats from cobol programs

703


Can we change the password using ALTER? anyone tried and changed?

1547


When is inspect verb is used in cobol?

673