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
HOw can I get the negative sign while deduct high value from low value
What are the cobol coding sheets?
Are you comfortable in cobol or jcl?
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?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
Name the divisions, which are available in a cobol program?
What are the different rules for performing sort operation?
Which is not true about evaluate statement
What is rmode(any) ?
What the difference is between continue and next sentence?
What is the LINKAGE SECTION used in COBOL?
) how do u code after getting data?
What are different data types in cobol?
Explain how you can characterize tables in cobol?
What are 77 levels used for?