There are two flat files one having 10 records and other
having 5 records. write a cobol pgm to find the duplicate
records(matching records)from both files.
Answer Posted / talluri
perform 10 times
read file1
perform 5 times
read file2
if file1rec = file2rec
write file1rec to file3rec
end-if
end perform
end perform.
Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
How do define dynamic array in cobol.
What is the use of intialize verb?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
Describe the cobol database components?
Which is not true about evaluate statement
How do you get the data to code the BMS macro?
) what is the difference between AID and HANDLE AID?
Why did you choose to work with ibm mainframe cobol programming?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
how do you reference the variable block file formats from cobol programs
What is perform what is varying?
What are the access modes of START statement?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
Can we redefine the field of x(200) to less than 200?
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks