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 |
How to use the same COBOL program in Batch and CICS on lines? explain with an example
what is label record is standard or omitted in file description of data division?
What do you feel makes a good program?
wht is the use of evalute verb ? how do u declare recfm in cobol and jcl ?
how to run sub programs using static and dynamic call ...
Scenario: I have 3 Input Files.Read the first i/p file and depending on certain business logic, I want to read wither i/p file-2 or i/p file-3.Now, depending on certain business logic applied to the record read from either file-2 or file-3, I decide to write them to either output file-2 or output file-2. Question: How many job steps are necessary to implement a solution for the above.
Explain about level numbers?
What is the difference between CALL BY VALUE and CALL BY CONTENT?
how you will define variables length in cobol.
what is the difference between external and global variables?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
HOW WE WILL SORT THE ARRAY WHICH IS GOING TO USE FOR SEARCH ALL?