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


Please Help Members By Posting Answers For Below Questions

HOw can I get the negative sign while deduct high value from low value

1779


What are the cobol coding sheets?

655


Are you comfortable in cobol or jcl?

633


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?

1221


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

1917






Name the divisions, which are available in a cobol program?

675


What are the different rules for performing sort operation?

753


Which is not true about evaluate statement

1560


What is rmode(any) ?

676


What the difference is between continue and next sentence?

651


What is the LINKAGE SECTION used in COBOL?

883


) how do u code after getting data?

1575


What are different data types in cobol?

678


Explain how you can characterize tables in cobol?

634


What are 77 levels used for?

650