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
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 |
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 |
What are the different types of condition in cobol and write their forms.
how do you reference the variable block file formats from cobol programs
in cobol perform stmt whether it first checks the condition or not
why we are using set in searchall?
01 A pic 9(100) find record length of it
what is jcl approach for programming?
HOW WE WILL SORT THE ARRAY WHICH IS GOING TO USE FOR SEARCH ALL?
How do you do in-line PERFORM?
Difference between cobol and cobol-ii?
How you can delete a record from a ps file in cobol?
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?
What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?