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 u handle errors in BMS macro?
What is redefines clause in COBOL?
Have you used comp and comp-3 in your project? And how?
How do u write test cases?
What guidelines should be followed to write a structured cobol prgm?
how can i see junk values in dclgen or in hostvariable of comp ?
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?
How arrays can be defined in COBOL?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
What is the difference between binary search and sequential search?
What is rmode(any) ?
Explain the configuration section of a cobol program with examples of syntax.
What are various search techniques in cobol? Explain.
i need a small 3d program using inline and outline.
Write the code to count the sum of n natural numbers.