packed decimal value, how to supress zeros
Posted: Wed Mar 01, 2006 3:16 pm
Hello,
I have 4 set of datastage job, which is running in sequence to achieve the desire target valus....
(1) DB2 -->xfm--> Datasets,
(2) Datasets ---->join--->Datasets,
(3) Datasets ---> join-->xfm---> Sequential file
and then
(4) db2 loader to load to target db2 database.
When I check the Sequential file stage, the last one before running db2 loader, I have some decimal values (8,0) which is representing like "00000000."). This creating problem while loading to target database, I am getting error message "cannot be converted to
a PACKED DECIMAL value, but the target column is not nullable" and records are being dropped.
I am trying to convert "00000000." to "0" means supressing zeros so that I can load it to the target database.
Can anyone guide me how to achieve it?
Thanks,
Gaurav
I have 4 set of datastage job, which is running in sequence to achieve the desire target valus....
(1) DB2 -->xfm--> Datasets,
(2) Datasets ---->join--->Datasets,
(3) Datasets ---> join-->xfm---> Sequential file
and then
(4) db2 loader to load to target db2 database.
When I check the Sequential file stage, the last one before running db2 loader, I have some decimal values (8,0) which is representing like "00000000."). This creating problem while loading to target database, I am getting error message "cannot be converted to
a PACKED DECIMAL value, but the target column is not nullable" and records are being dropped.
I am trying to convert "00000000." to "0" means supressing zeros so that I can load it to the target database.
Can anyone guide me how to achieve it?
Thanks,
Gaurav