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 77 levels used for?
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
what is the use of outrecord?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
how can i see junk values in dclgen or in hostvariable of comp ?
What is the difference between binary search and sequential search?
Explain the configuration section of a cobol program with examples of syntax.
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
What is the difference between PIC 9.99 and 9v99 in COBOL?
What is the difference between PIC 9.99 and PIC9v99?
What are literals?
how do you define single dimensional array and multidimensional array in your cobol?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
how do you reference the rrds file formats from cobol programs
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.