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
How do define dynamic array in cobol.
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
) How do u handle errors in BMS macro
Write a program to explain size error.
How can you get the ksds file records into your cobol program?
Are you comfortable in cobol or jcl?
What is the difference between binary search and sequential search?
what happens if parmparameter passes zero bytes to the program
example for sub strings ? and refernce modifications whit output pls
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
In COBOL programming, what is PERFORM? What is VARYING?
What is a SSRANGE and NOSSRANGE?
What is the difference between a binary search and a sequential search what are the pertinent cobol?
Which is not true about evaluate statement
What is perform what is varying?