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 / raj

You can use check point logic in JCL or you can do this in
program using a recovery-restart table.
1)First time when program runs it reads this table. No
records .. proceed..
2)Process 50 records .. store 50th record key in table..
then proceed to process file from 50th record..
3) Say program failed at 65th record..
4)Restart the job..
5)Program first look the restart table.. It has key value
of 50th record..
6)So set pointer to 51st record and start processing.
7)If your system is unrealiable and set commit frequency 5
or 10 records..

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

) How do u handle errors in BMS macro?

1418


What is redefines clause in COBOL?

841


Have you used comp and comp-3 in your project? And how?

2003


How do u write test cases?

1631


What guidelines should be followed to write a structured cobol prgm?

663






how can i see junk values in dclgen or in hostvariable of comp ?

2536


How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?

2091


How arrays can be defined in COBOL?

658


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

1920


What is the difference between binary search and sequential search?

634


What is rmode(any) ?

676


Explain the configuration section of a cobol program with examples of syntax.

650


What are various search techniques in cobol? Explain.

639


i need a small 3d program using inline and outline.

1629


Write the code to count the sum of n natural numbers.

697