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 |
I have two sequential files, FILE-1 and FILE-2. FILE-1 contains 2 columns(A,B) and FILE-2 contains 3 columns (C,D,E).I want an output file, FILE-3 which has all five columns with duplicates eliminated from column A.
if i am reading a file with some 50000 records and moving to a DB2 table and suddenly the program abends in between, is there anyway i could restart from the exact record at which the job failed once the program restarts.
Explain how you can characterize tables in cobol?
What is difference between comp & comp-4?
perform I from 0 by 1 until I=5?How maney times it will executes
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
What does the INITIALIZE verb do?
How do you reference the fixed block file formats from cobol programs
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
What is amode(31)
Whtz the specialty of 77 level number ?