Read a flat file and write last but one (I have n records in a file I have to write n-1th) record in another flat file. Could you please provide me the code in COBOL?
Answer Posted / mehak
open input file reversed
this will read file in reversed order
write 2 record
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are different data types in cobol?
What is comp-1 and comp-2?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
Name some of the examples of COBOl 11?
how do you reference the esds vsam file formats from cobol programs
What is the difference between comp and comp-3 usage?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
Have you used comp and comp-3 in your project? And how?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
what is difference between cobol and cobol/400
how do you reference the fixed unblock file formats from cobol programs
Discuss about changing dataset name in proc.
Explain about different table spaces.
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
What is a scope terminator give example?