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


Please Help Members By Posting Answers For Below Questions

How do define dynamic array in cobol.

673


What is the use of intialize verb?

750


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

711


Describe the cobol database components?

682


Which is not true about evaluate statement

1589






How do you get the data to code the BMS macro?

1476


) what is the difference between AID and HANDLE AID?

1637


Why did you choose to work with ibm mainframe cobol programming?

631


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

1947


how do you reference the variable block file formats from cobol programs

688


What is perform what is varying?

711


What are the access modes of START statement?

719


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17048


Can we redefine the field of x(200) to less than 200?

820


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

2337