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 / 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 |
what modification we need to do in jcl if we use sort in cobol? I mean whether we need to include tempary file used for sorting in assign statement?
What is SDSF?
Consider the following code: 77 A PIC 99V99 VALUE 55.35 77 B PIC 99V999 VALUE 32.754 ADD B TO A ON SIZE ERROR DISPLAY "ERROR!!!" What will be the result ? (a) A=88.10, B=32.754 (b) A=87.00 B=32.754 (c) A=87.10 B=32.754 (d) ERROR!!! will be DISPLAYed on the screen.
Can anyone explain me CALL procedure in COBOL.Does it carries similarities like call by reference in C.
what is record label is empty or standard in file description of data division?
What is the mode in which you will OPEN a file for writing?
What are the cobol coding sheets?
How can you add a particular field in copybook?
What is an in line PERFORM? When would you use it? Anything else to say about it?
what happens when a copybook variables are declared using include statement ?
Difference between file status codes 02 and 22.... since both are for duplicate key detection.
what are difference organizations in cobol and access mode in cobol? can you expalin what organization means while declaring for ksds,esds,rrds?