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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a SSRANGE and NOSSRANGE?

820


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1523


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

706


) how do u code after getting data?

1580


How arrays can be defined in COBOL?

663






how do you define single dimensional array and multidimensional array in your cobol?

674


What is the difference between binary search and sequential search?

638


How to remove 2 duplicate records and copy only one using job control language?

753


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

689


What is Pic 9v99 Indicates in COBOL?

726


What is inspect in cobol ?

801


Can we change the password using ALTER? anyone tried and changed?

1547


how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)

1931


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

708


What is the utilization of copybook in cobol?

657