DB2-Fetch Issue ( load fails in-between)

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
venkatrranga
Participant
Posts: 15
Joined: Thu Sep 23, 2004 2:18 pm

DB2-Fetch Issue ( load fails in-between)

Post by venkatrranga »

Hi,

Background: We have 150+ tables are being loaded on daily basis from One DB2 instance to Other DB2 instance. The volume ranges from 100 to 2 million rows. All these jobs are running in sequencer with the following parameters.

$SRCDBTYPE = IBM DB2 [$PROJDEF]
$TARRAY = 500 [$PROJDEF] - Target Array Size
$SARRAY = 500 [$PROJDEF] - Source Array Size
$TRANSIZE = 5000 [$PROJDEF]

Last 3 days one of the jobs (TAX_BALANCE) is failing with following error after loading 700,000 rows. The current volume of the job is 1298822. This job ran successfully till the volume was 1297853. As for as I know there were no changes made in the environment.

TAX_BALANCE..TAX_BALANCE: SQLFetch: Error retrieving results from server.
TAX_BALANCE..TAX_BALANCE: [IBM][CLI Driver][DB2] SQL0100W No row was found for FETCH, UPDATE or DELETE; or the result of a query is an empty table. SQLSTATE=02000


Our Findings: This job runs without any errors if we change the source array to something different (200, 1000, and 5000). But again that number is not consistent either. Every time we ran we had to change Source Array to something different.

Any ideas ?

Appreciate your help.

Regards
Venkat
Post Reply