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 / anil t.
Using Merge
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
What kind of error is trapped by on size error option?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
) how do u code after getting data?
i want a program using by if, evaluate , string, unstring, perform, occurs?
what is search and searchall?what is the diffrence between them?give an best example?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
In which area will you utilize 88 level items in cobol?
How you can read the file from bottom?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
What are various search techniques in cobol? Explain.
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.
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
What are the rules of the move verb?