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 |
how will u pass dadta to cobol+db2 program...?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
Can a Search can be done on a table with or without Index?
What is the difference between Structured COBOL Programming and Object Oriented COBOL ?
TYPES OF SORTINGS. which is more prefarable.
Which of the following paragraphs is compulsory in every COBOL program? (a) SPECIAL-NAMES (b) PROGRAM-ID (c) FILE-CONTROL (d) OBJECT-COMPUTER
What is the difference between performing a SECTION and a PARAGRAPH?
What are the situations u have used in ur project for Subcript and Index ? 1.if u use Subscript why not Index,why u choose Subscript only? 2.if u use Index why not Subscript,what abt Displacement?
I have dataset DS1 which has records say 1 2 3 4 5 ... ... etc And also I have second dataset DS2 whcih has records 1 3 4 5 6 8 .. ... Both the files are sorted and now I want to compare these files and write it into the third files if the records are matching.
What is the difference between comp and comp-3?
can i give 9(10) in comp 3 instead of s9(10) ? if i can give wht would be ths ans
we can use set true for condition names.. similarly can we code set to false in cobol pgm? will it work?