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 to remove leading spaces and zeroes in a cobol variable.is there any easy way to do it
What is the difference between structured cobol programming and object alternativelyiented cobol?
if someone is using my file,how can i find which user id is using?
a. Can the OPTIONAL clause in COBOL only be coded for input files? b. If it is coded for files opened in OUTPUT, I-O or EXTEND mode, will it give a compilation error? c. If there are no compilation errors and if such files are not coded in the JCL, will the OPEN statement run fine when these files are opened? d. How will a WRITE statement work for the above files?
How do you do in-line PERFORM?
What are the differences between OS VS COBOL and VS COBOL II?
How you can characterize tables in cobol?
Hi All, how is sign is stored in S9(17) comp-3 variable. Answer with an Example will be of great help.
01 a pic s9(5) occupies how many bytes ?
How do you reference the following file formats from cobol programs?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
have in 100 records in a flat file i want to move records like 1,3,5,7,9,11,.. to Output file1 and 2,4,6,8,10,12,14 .. records moved to Output file2..Pls Provide real time answer..