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
how do you define single dimensional array and multidimensional array in your cobol?
How do get the result of your program directly on your pc?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
Define static linking and dynamic linking.
I have a File that has duplicate records. I need only those records that occur more than thrice.?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
How do define dynamic array in cobol.
what is difference between cobol and cobol/400
What is perform what is varying?
What is the Purpose of Pointer in the string?
how do you reference the variable block file formats from cobol programs
Write the code implementing the perform … varying.
What is the Purpose of POINTER Phrase in STRING command in COBOL?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
What is the problem of ordered sequential files access?