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 / harsha
First merge bothe file.
Use sort card
//Sysin dd *
sort fields=-------
Sum fields=(none,xsum)
/*
File mentioned in SORTXSUM dd name will contain matching
records.
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Which division and paragraphs are mandatory for a COBOL program?
How many sections are there in data division in COBOL?
What is length is cobol?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
How do we get current date from system with century in COBOL?
What rules are followed by the search verb.
Why occurs cannot be used in 01 level in COBOL?
how do you reference the esds vsam file formats from cobol programs
How do you reference the fixed block file formats from cobol programs
How do define dynamic array in cobol.
What is the difference between binary search and sequential search?
For rewrite, why is it mandatory that file needs to be opened?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
How do you get the data to code the BMS macro?