Hi,
I'm loading cust_key column value with bigint datatype to db2 database.but NULL values are getting load into the table.while i tried to load the same cust_key column to dataset,values are getting loaded correct.
Not knowing why the NULL values are getting loaded into the db2 database.
Could any one please let me know where the issue is?
Thanks & Regards,
Kalpana.
Loading error in DB2
Moderators: chulett, rschirm, roy
Loading error in DB2
Kalpana Marupudi
-
- Participant
- Posts: 91
- Joined: Wed Apr 20, 2005 7:59 pm
- Location: U.S.
Hi Kalpana,
The data is loading properly in DataSet but not in DB2 table. It will work in Dataset when you copy the input link into dataset output link in which case both will have the same datatype as bigint.
Maybe you are trying to push the BigInt datatype into Int column in DB2.
Check it and let us know.
The data is loading properly in DataSet but not in DB2 table. It will work in Dataset when you copy the input link into dataset output link in which case both will have the same datatype as bigint.
Maybe you are trying to push the BigInt datatype into Int column in DB2.
Check it and let us know.
mobashshar wrote:Hi Kalpana,
The data is loading properly in DataSet but not in DB2 table. It will work in Dataset when you copy the input link into dataset output link in which case both will have the same datatype as bigint.
Maybe you are trying to push the BigInt datatype into Int column in DB2.
Check it and let us know.
Thanks for your reply,
DB2 stage column is defined as nullable and in DB2 database also column is defined as nullable.
We are actually getting the column value from a dataset which is defined as VarChar using modify stages we converted to In32 using the following functions
decimal_from_string and nt32_from_decimal
After using decimal_from_string conversion function,I'm using Trimleadingtrailing() function.Can I use this function for decimal value?
Don't know where I'm really wrong..Please help
Kalpana Marupudi
-
- Participant
- Posts: 91
- Joined: Wed Apr 20, 2005 7:59 pm
- Location: U.S.