How to read records from flat file in reverse order through
COBOL program?

Answer Posted / dimpy19

When REVERSED is specified, OPEN statement execution positions the QSAM file at its end. Subsequent READ statements make the data records available in reversed order, starting with the last record


Open INPUT filename REVERSED

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is report-item in COBOL?

905


Why occurs cannot be used in 01 level in COBOL?

925


what is the difference between COBOL2 AND COBOL390?

2742


Write down the divisions of cobol program?

857


What type of SDLC u followed? Why?

1740


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

1082


What is an in line perform? When would you use it? Anything else you wish to say about it.

851


Which Search verb is equivalent to PERFORM…VARYING?

867


what is difference between cobol and cobol/400

22166


Give some examples of command terminators?

957


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

1076


In which area will you utilize 88 level items in cobol?

907


Explain what you understand by passing by value.

922


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

1833


What is the utilization of copybook in cobol?

894