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 the difference between structured cobol programming and object alternativelyiented cobol?
What is the problem of ordered sequential files access?
How do you reference the fixed block file formats from cobol programs
What is a report item?
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.
How to use the same COBOL program in Batch and CICS on lines? explain with an example
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
Can we redefine the field of x(200) to less than 200?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
What is the difference between a binary search and a sequential search what are the pertinent cobol?
In COBOL, what is the different between index and subscript?
what is search and searchall?what is the diffrence between them?give an best example?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
Discuss about changing dataset name in proc.
In COBOL programming, what is PERFORM? What is VARYING?