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
What is comp-1 and comp-2?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
What is the difference between comp and comp-3?
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly
Difference between cobol and cobol-ii?
A table has two indexes defined. Which one will be used by the SEARCH?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
Why did you choose to work with ibm mainframe cobol programming?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
Write the code to count the sum of n natural numbers.
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
State the various causes of s0c1, s0c5 and s0c7.
Why would you use find and get rather than to obtain?
What is the difference between perform … with test after and perform … with test before?