How To Supply the Actual Key Range to a Multi-Thread Batch Job
Last updated on JUNE 03, 2010
Applies to:Oracle Utilities Customer Care and Billing - Version: 18.104.22.168
Information in this document applies to any platform.
Tried to run a Cobol batch job in multiple threads. They need to process 2.8 million To Do records of a certain To Do Type. The records' Ids for this To Do Type are in the range from 00000000650737 to 00000999999770, which makes breaking them into a reasonable number of threads impossible; all records fall into the first thread. The customer used the base To Do maintenance program CIPQTDEN to create these entries.
The Cobol side would generate a random parent key, OR use the drill key as the parent key. When there is no parent key, the first 5 digits of the To Do Entry Id are all zeroes, rendering breaking such records into threads impossible.
This issue affects older batch jobs (not only related to To Do) written in Cobol, because they use for threading the full possible key range from all zeroes to all nines. Batch jobs written in java are not affected; threading in them is done based on the actual number of records to process, which allows more even record distribution among threads.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms