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
How arrays can be defined in COBOL?
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?
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.
how to refer the data field?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
What is the use of intialize verb?
How to remove 2 duplicate records and copy only one using job control language?
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
What is the difference between goback, stop run and exit program in cobol?
how do you reference the fixed unblock file formats from cobol programs
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
What type of SDLC u followed? Why?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
What are literals?
Discuss about changing dataset name in proc.