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
What is the difference between structured cobol programming and object alternativelyiented cobol?
Define cobol?
What is cobol?
What rules are followed by the search verb.
how do you reference the esds vsam file formats from cobol programs
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
What is Pic 9v99 Indicates in COBOL?
What are different data types in cobol?
What is the difference between PIC 9.99 and PIC9v99?
Are you comfortable in cobol or jcl?
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.
Can you please let me know the centre name of INS certification in Kolkata.
How do you reference the fixed block file formats from cobol programs
Can we change the password using ALTER? anyone tried and changed?
When is inspect verb is used in cobol?