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

Write some characteristics of cobol as means of business language.

619


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2723


How do we get current date from system with century in COBOL?

805


What are the different types of condition in cobol and write their forms.

656


When is inspect verb is used in cobol?

673






What is the use of intialize verb?

744


how to move the records from file to array table. give with code example

2219


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

658


What is a scope terminator give example?

655


Differentiate between structured cobol programming and object-oriented cobol programming.

663


what happens if parmparameter passes zero bytes to the program

1664


explain sorting techniques in cobol program?

686


Define static linking and dynamic linking.

662


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1782


What is the difference between next sentence and continue in cobol programing language?

708