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
A table has two indexes defined. Which one will be used by the SEARCH?
Write a program to enter and display the names of students in a class using the occurs clause.
how do you reference the fixed unblock file formats from cobol programs
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
How do we get current date from system with century in COBOL?
What is the utilization of copybook in cobol?
What rules are to be followed while using the corresponding options?
What is the difference between comp and comp-3?
Define cobol?
What is the difference between external and global variables in COBOL?
How to know whether the module is dynamical or statistical?
What is comp-1 and comp-2?
What is an in line perform? When would you use it? Anything else you wish to say about it.
Whats the difference between search & search ALL?
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.