after udatingg first 110 rows, my job abends. now how do i
change my cobol program so that when i restart the Job it
will start updating from 111th row ( i.e in next run I
di=ont want to update those 110 rows which are already been
updated in the first run before job abend)
Answer Posted / sasha
- allocate control file with counter init to zero
- when you successfully processed your input records
accumulate your counter on control file
- if you abend then in your program first find out in
control counter is > 0. Then you reread your input file
until number of records read is equal to your counter on
control file. Next record is your current record to be
processed
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Define static linking and dynamic linking.
how to access the file from prodution from changeman tool and to submit a file to production
For rewrite, why is it mandatory that file needs to be opened?
How can you get the ksds file records into your cobol program?
IF I mention stop run in CICS what happens?
A table has two indexes defined. Which one will be used by the SEARCH?
i want a program using by if, evaluate , string, unstring, perform, occurs?
How do you reference the following file formats from cobol programs?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
What is the difference between PIC 9.99 and 9v99 in COBOL?
example for sub strings ? and refernce modifications whit output pls
Which is not true about evaluate statement
) How do u handle errors in BMS macro
What is an in line perform? When would you use it? Anything else you wish to say about it.
what is the use of outrecord?