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 / anupam
EVALUATE KEY1 > KEY2 ALSO KEY2 < KEY1
WHEN FALSE ALSO FALSE
READ F1 NEXT RECORD
READ F2 NEXT RECORD
WHEN TRUE ALSO FALSE
READ FILE1 NEXT RECORD
WHEN FALSE ALSO TRUE
READ FILE2 NEXT RECORD
END-EVALUATE
| Is This Answer Correct ? | 3 Yes | 10 No |
Post New Answer View All Answers
What is the difference between Global and External Variables?
Can we change the password using ALTER? anyone tried and changed?
Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.
how do you reference the rrds file formats from cobol programs
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
What is the difference between comp and comp-3 usage?
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
Write a program to explain size error.
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What is a SSRANGE and NOSSRANGE?
What is rmode(any) ?
what are decleratives in cobol?
What is the use of intialize verb?
What is the LINKAGE SECTION used in COBOL?
What is the problem of ordered sequential files access?