Warning in DB2 Stage

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
jseclen
Participant
Posts: 133
Joined: Wed Mar 05, 2003 4:19 pm
Location: Lima - Peru. Sudamerica
Contact:

Warning in DB2 Stage

Post by jseclen »

Hi Forum,

In my job process reads records from a sequential file and validate this record in a db2 table, if exists perform an updated operation else insert the new record.

After run, in the director log appear this message

'DM_FCV_PROMEDIO..DB2_D_FCV_CONVERSION: This update action 'update or insert' is not compatible with parameter array binding. Array Size property will be set to 1.'

Both operation, insert and update are in the same db2 stage, with the array size 50 and transaction size 100.

Is incompatible use a same stage for both operations???

Thnks for your help.
Saludos,

Miguel Seclén
Lima - Peru
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

You cannot have array size greater than 1 for either "Update then Insert" or "Insert then Update". The array size is set to 1 and you are warned about it.
Set the array size to 1 and the warning will go away.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
jseclen
Participant
Posts: 133
Joined: Wed Mar 05, 2003 4:19 pm
Location: Lima - Peru. Sudamerica
Contact:

Post by jseclen »

Hi DSGuru,

This job has 2 links to the db2 stage, one for the insert and another for the update, i know there is an operation 'Update existing or insert new rows' or viceversa but im not using it.
Saludos,

Miguel Seclén
Lima - Peru
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Re: Warning in DB2 Stage

Post by DSguru2B »

jseclen wrote: 'DM_FCV_PROMEDIO..DB2_D_FCV_CONVERSION: This update action 'update or insert' is not compatible with parameter array binding. Array Size property will be set to 1.'
Are you sure. Double check the update action for both your links. Your error message indicates that one of them is set to 'Update Or Insert'.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
jseclen
Participant
Posts: 133
Joined: Wed Mar 05, 2003 4:19 pm
Location: Lima - Peru. Sudamerica
Contact:

Re: Warning in DB2 Stage

Post by jseclen »

Yes master, i verified and anylink is seted with that Update action. Is necessary separate in two diferents db2 stages or not?
Saludos,

Miguel Seclén
Lima - Peru
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Try with two seperate stages. Maybe db2 stage is treating two seperate links of insert and update as 'insert or update single link'. Try with two and see what happens.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
jseclen
Participant
Posts: 133
Joined: Wed Mar 05, 2003 4:19 pm
Location: Lima - Peru. Sudamerica
Contact:

Post by jseclen »

Ok i will change the job and apply your recommendation.

Thanks.
Saludos,

Miguel Seclén
Lima - Peru
Post Reply