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
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
What are literals?
Why occurs cannot be used in 01 level in COBOL?
Write a program to enter and display the names of students in a class using the occurs clause.
What is rmode(24)
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
Have you used comp and comp-3 in your project? And how?
how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)
What is comp-1 and comp-2?
What are the different rules to perform a Search?
Which is not true about evaluate statement
What are the different rules for performing sort operation?
how do you reference the fixed unblock file formats from cobol programs
What kind of error is trapped by on size error option?
What is perform what is varying?