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 / mustafa i
Abhishekh your logic is correct
just to add to it
we can even do it by reading the file only once.
1)Read File & Move into an array until EOF also increment a
counter after every read.
3)By decrementing the Counter and using it as subscript
we can now read the array and hence the file in
reverse order.
| Is This Answer Correct ? | 10 Yes | 4 No |
Post New Answer View All Answers
Have you used comp and comp-3 in your project? And how?
What are the different open modes available in cobol?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
how to refer the data field?
What is the difference between binary search and sequential search?
What is perform what is varying?
What is the difference between external and global variables in COBOL?
How to print 10 to 1 if the input have only 10 digit number?
What is the difference between comp and comp-3?
What is the difference between Global and External Variables?
What is static and dynamic call in cobol?
How you can read the file from bottom?
Write down the divisions of cobol program?
What is rmode(any) ?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?