when iam reading a flat file which has 100 records through
cobol program when iam reading 50th records it gets abends
.. so when i run the program again it should read from 50th
record .where it got abened ? how it is possible
Answer Posted / pramod dixit
WHEN EVER THERE IS AN ERROR / ABEND IN THE CODE(50TH
RECORD), BEFORE THE PROGRAM STOPS, WWRITE THAT RECORD INTO
TEMP (PRE DEFINEED AND CREATED) FILE. eVERY TIME THE
PROGRAM IS RUN, CHECK THE TEMP FILE, IF THE TEMP FILE IS
EMPTY, THEN CODE IS NOT ABENDED., IF THE TEMP FILE HAS
VALUES, READ THE TEMP FILE, PASS THE KEY VALUES FROM IT TO
FLAT FILE AND DO A READ. ., AND PERFORM OPRATIONS FOR ALL
OTHER RECORDS AFTER THAT RECORD.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
how do you reference the ksds vsam file formats from cobol programs
What are various search techniques in cobol? Explain.
Why would you use find and get rather than to obtain?
What is rmode(24)
What is amode(31)
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
What is redefines clause in COBOL?
What is the local-storage section?
What is the LINKAGE SECTION used in COBOL?
What is the difference between structured cobol programming and object alternativelyiented cobol?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
What is link edit in cobol?
What is rmode(any) ?
Define static linking and dynamic linking.
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?