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

Are you comfortable in cobol or jcl?

834


What is the difference between structured cobol programming and object alternativelyiented cobol?

1026


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

1030


How to remove 2 duplicate records and copy only one using job control language?

1005


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

958


Difference between cobol and cobol-ii?

972


What is the Purpose of POINTER Phrase in STRING command in COBOL?

1004


Mention the guidelines to write a structured cobol program?

872


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

896


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?

1446


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17552


In COBOL programming, what is PERFORM? What is VARYING?

907


What is difference between static and dynamic call in cobol?

1061


i want a program using by if, evaluate , string, unstring, perform, occurs?

4393


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

1104