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 is MSGLEVEL?

1 Answers   IBM,


What are literals?

0 Answers  


What is a report item?

0 Answers  


Consider the following COBOL entries: 05 X PIC 99 VALUE 10. SUBTRACT 20 FROM X. The resultant value of X wil be

7 Answers   TCS,


What is an explicit scope terminator?

3 Answers  






What is a scope terminator give example?

0 Answers  


What are the divisions in a cobol program?

1 Answers  


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

0 Answers  


Why occurs cannot be used in 01 level in COBOL?

0 Answers   Arigo Infotech,


1.What is the default print format in cobol?

5 Answers   HSBC,


what is Reentrancy and Quasi-reentrancy?

1 Answers  


01 a pic x(6) value is abcdef 01 b pic x(3) move a to b wht will be the value in b ?

3 Answers   Patni,


Categories