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 ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is the difference between PIC 9.99 and 9v99 in COBOL?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
What is static and dynamic call in cobol?
How many bytes S(8) comp field occupy and its maximum value?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
How to know whether the module is dynamical or statistical?
What are the various section in data division and briefly explain them.
Mention the guidelines to write a structured cobol program?
What is an in line perform? When would you use it? Anything else you wish to say about it.
How to remove 2 duplicate records and copy only one using job control language?
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
how do you reference the printer file formats from cobol programs
What is the difference between goback, stop run and exit program in cobol?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?