Issue in loading data using DB2UDB Enterprise Stage...

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
kaps
Participant
Posts: 452
Joined: Tue May 10, 2005 12:36 pm

Issue in loading data using DB2UDB Enterprise Stage...

Post by kaps »

We are having issues while trying to load data using DB2UDB Enterprise stage.
Job design as follows:

DB2APIstage---Xfmer---Remove Duplicate----Db2UDBEnterprise

We get the following error:
main_program: DB2 Get Table Partitioning Information.
main_program: SQLCODE = -303; SQLSTATE=42806
main_program: SQL0303N A value cannot be assigned to a host variable in the SELECT, VALUES, or FETCH statement because the data types are not compatible. SQLSTATE=42806
main_program: Fatal Error: DB2 Get Table Partitioning Information failed.
No null values in the input. Partition type selected in Target stage is DB2.

Please advise.
Last edited by kaps on Mon Mar 14, 2011 3:26 pm, edited 1 time in total.
MT
Premium Member
Premium Member
Posts: 198
Joined: Fri Mar 09, 2007 3:51 am

Re: Issue in loading data using DB2UDB Enterprise Stage...

Post by MT »

Hi kaps

you have to read the error message completly
kaps wrote:
main_program: SQL0303N A value cannot be assigned to a host variable in the SELECT, VALUES, or FETCH statement because the data types are not compatible. SQLSTATE=42806
Check the data types your are going to load and their nullability.

regards
Michael
regards

Michael
kaps
Participant
Posts: 452
Joined: Tue May 10, 2005 12:36 pm

Post by kaps »

There are only two columns coming through...One is BigInt and the other is Varchar(1000) which is same as the Target. As I said before no null values in either column.

Only thing is key not defined in the Target table. Is that an issue ?
kaps
Participant
Posts: 452
Joined: Tue May 10, 2005 12:36 pm

Post by kaps »

There are only two columns coming through...One is BigInt and the other is Varchar(1000) which is same as the Target. As I said before no null values in either column.

Only thing is key not defined in the Target table. Is that an issue ?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The table will need a key if it's a partitioned table, but does not need a key otherwise.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply