i have two file one is ksds another one is esds i want store
matching records in flat file how to you matching.

Answers were Sorted based on User's Feedback



i have two file one is ksds another one is esds i want store matching records in flat file how to y..

Answer / satish.klnm

esds<rno, rname....>,

Procedure division.
open input fileksds, input fileesds, output file33.
para-1.
read fileesds at end perform end-para.
para-2.
start fileksds key = rno<esds> invalid key
perform para-1.
write rec33 from rec<esds>.
perform para-1.
end-para.
close fileksds, fileesds, file33.
stop run.

Is This Answer Correct ?    3 Yes 3 No

i have two file one is ksds another one is esds i want store matching records in flat file how to y..

Answer / lu

you can do like Satish or you move KSDS to flat file and
ESDS to another flat file and after this, u sort it...

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More COBOL Interview Questions

What are the different types of condition in cobol and write their forms.

0 Answers  


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

0 Answers  


in cobol perform stmt whether it first checks the condition or not

9 Answers  


why we are using set in searchall?

4 Answers   IBM,


01 A pic 9(100) find record length of it

6 Answers   TCS,






what is jcl approach for programming?

4 Answers   IBM,


HOW WE WILL SORT THE ARRAY WHICH IS GOING TO USE FOR SEARCH ALL?

2 Answers   Cap Gemini,


How do you do in-line PERFORM?

4 Answers   Accenture,


Difference between cobol and cobol-ii?

0 Answers  


How you can delete a record from a ps file in cobol?

1 Answers  


I have a COBOL main program which is calling sub program, the number of calling parameters used in main program are 4 whereas in sub program it's 5. Sub program is passing 5 parameters back to main program Will there be any compilation error? Or main program parameters displays junk values?

1 Answers  


What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?

7 Answers   T systems,


Categories