How to read records which is in sequential file in reverse
order ? Exp. 1 2 3 4 5 . i want 5 4 3 2 1?please clear my
doubt any one
Answer Posted / gautam
Read file till end of the file and move the record to array.
Increase the counter.
Read the record from array until counter = 0.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can we redefine the field of x(200) to less than 200?
how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)
How to use the same COBOL program in Batch and CICS on lines? explain with an example
Why occurs cannot be used in 01 level in COBOL?
What is the usage of comp fields in cobol?
What are the pertinent COBOL commands?
How do you differentiate between cobol and cobol-ii?
How do we get current date from system with century in COBOL?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
A table has two indexes defined. Which one will be used by the SEARCH?
Explain about different table spaces.
What is the difference between PIC 9.99 and 9v99 in COBOL?
Name the sections present in data division.
What is the difference between goback, stop run and exit program in cobol?
I have a File that has duplicate records. I need only those records that occur more than thrice.?