How to read records from flat file in reverse order through
COBOL program?
Answers were Sorted based on User's Feedback
Answer / sreejith
i think it is also possible by using access mode dynamic.
first randomly point last record from the file using START
option. after you start read record in reverse order by
using READ PREV option until header of the file reached
| Is This Answer Correct ? | 18 Yes | 26 No |
Answer / gurukulu
use COBOL internal sort in ascending or descending key.
| Is This Answer Correct ? | 0 Yes | 11 No |
Answer / janu
using iebcmpr
we can easily read
sort fields=(pos,length,d,char)
| Is This Answer Correct ? | 8 Yes | 23 No |
What is a subscript ?
what is the use of keep and pass in disp
what is SYNCHRONIZATION?
What is the utilization of copybook in cobol?
How to read records in reverse order in flat file? I know we can do it by reading all records into an array.... Then read records in reverse order by using subscript or index but can any body give me the exact code.
can u plz expain me how to declare dynamic array? what is the meaning of depending on clause in dynamic array?
If there are two copybooks which have same variables and we are using both the copybooks in our program. will there be an error and if i move values to the variable which copybook varibales gets the values i move in.
What does MAXCC 3 means? It is used in one my codes.
if one main program ,n -subprograms are then which call you follow ?why reasonuhg
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
what is the difference between COBOL2 AND COBOL390?
A table has two indexes defined. Which one will be used by the SEARCH?