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
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
What are the different types of condition in cobol and write their forms.
How do you define a variable of comp-1 and comp-2?
how do you reference the ksds vsam file formats from cobol programs
What is the use of intialize verb?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
Write a program to enter and display the names of students in a class using the occurs clause.
what is s000 u4087 error? please give the all error codes in cobol,jcl.
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
Difference between array and sub-script ?
What is the usage of comp fields in cobol?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?