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
Are you comfortable in cobol or jcl?
What is the difference between structured cobol programming and object alternativelyiented cobol?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
How to remove 2 duplicate records and copy only one using job control language?
Name the divisions, which are available in a cobol program?
Difference between cobol and cobol-ii?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
Mention the guidelines to write a structured cobol program?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
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?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
In COBOL programming, what is PERFORM? What is VARYING?
What is difference between static and dynamic call in cobol?
i want a program using by if, evaluate , string, unstring, perform, occurs?
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need