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 / 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 |
What guidelines should be followed to write a structured cobol prgm?
Can we use goto statement in inline_perform ?
What are the pertinent COBOL
What are the rules of the move verb?
if you give cylinder(1,1)how many cylinders it will be allocate?
What is the local-storage section?
what is filler and what is use of filler
Can we move X(7) to S9(7) COMP?
can u plz expain me how to declare dynamic array? what is the meaning of depending on clause in dynamic array?
What are the two search techniques ?
What is the maximum data length for Numeric DataType ?
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.