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 to move the records from file to array table. give with code example
What rules are to be followed while using the corresponding options?
how do you reference the variable unblock file formats from cobol programs
What type of SDLC u followed? Why?
What is the difference between Global and External Variables?
Why occurs cannot be used in 01 level in COBOL?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
In which area will you utilize 88 level items in cobol?
What is static and dynamic call in cobol?
What is link edit in cobol?
How can you get the ksds file records into your cobol program?
Have you used comp and comp-3 in your project? And how?
What are the different rules for performing sort operation?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
What is difference between static and dynamic call in cobol?