can we read records in a file from botom to top. if
possible how can we read

Answer Posted / jayant

WORKAROUND:Sort the file in the descending manner first
based on its key,than read it normally.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the problem of ordered sequential files access?

693


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

711


Which Search verb is equivalent to PERFORM…VARYING?

680


How many bytes S(8) comp field occupy and its maximum value?

1626


What is the difference between Call and a Link?

694






I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......

10575


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

3713


What are the different open modes available in cobol?

713


How can you get the ksds file records into your cobol program?

639


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

676


if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

851


how do you reference the variable block file formats from cobol programs

680


How do we get current date from system with century in COBOL?

796


What rules are to be followed while using the corresponding options?

632


Can a Search can be done on a table with or without Index?

800