sample code for read a 2nd record from last in flatfile how
can do?
Answer Posted / sunilkumar
First open the file in reverse order using OPEN command
OPEN FILE file-name REVERSE
Then read twice to get the 2nd last record.
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Explain about different table spaces.
Define static linking and dynamic linking.
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
how do you reference the printer file formats from cobol programs
How you can characterize tables in cobol?
In which area will you utilize 88 level items in cobol?
How to know whether the module is dynamical or statistical?
what happens if parmparameter passes zero bytes to the program
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.
What rules are to be followed while using the corresponding options?
How can you get the ksds file records into your cobol program?
how can i see junk values in dclgen or in hostvariable of comp ?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
What is the difference between external and global variables in COBOL?
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that