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
Which Search verb is equivalent to PERFORM…VARYING?
What is a report item?
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
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
How do you differentiate between cobol and cobol-ii?
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
i need a small 3d program using inline and outline.
What is link edit in cobol?
How do we get current date from system with century in COBOL?
) How do u handle errors in BMS macro
Write the code implementing the perform … varying.
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
What is static and dynamic call in cobol?
how do you reference the fixed unblock file formats from cobol programs
What are the different rules for performing sort operation?