Unable to set output decimal field value

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
xch2005
Participant
Posts: 85
Joined: Fri Apr 29, 2005 3:13 am
Location: India

Unable to set output decimal field value

Post by xch2005 »

Hi,

The job what I am trying to do is get all the records from Sybase table and load Oracle table (Upsert mode). During the job execution the following warning message is thrown.


Unable to set output decimal field value from argument string '9.9999999999999995e-08' in function setOutputFieldAsDecimal() for field '10' in output dataset '0'.

field 10 is basically a char(9) and target also is char(9). It is just a column to column mapping and nothing more is done in that column.

Appericiate if I can get some suggestions on this.

Thanks,
SP
jwiles
Premium Member
Premium Member
Posts: 1274
Joined: Sun Nov 14, 2004 8:50 pm
Contact:

Post by jwiles »

What is the corresponding datatype within Sybase (the source)? You need to either match the datatypes when you extract the data or get Sybase to convert the data to a standard numeric format instead of scientific notation when placing into a string. Your Sybase DBAs can help with the proper SQL for the latter.

Regards,
- james wiles


All generalizations are false, including this one - Mark Twain.
xch2005
Participant
Posts: 85
Joined: Fri Apr 29, 2005 3:13 am
Location: India

Post by xch2005 »

I see the datatype as char(9) only in Sybase
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Maybe you're looking in the wrong field. They are numbered from zero.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
xch2005
Participant
Posts: 85
Joined: Fri Apr 29, 2005 3:13 am
Location: India

Post by xch2005 »

Yes, you are right. The next column was a float column and that had actually caused the issue.
xch2005
Participant
Posts: 85
Joined: Fri Apr 29, 2005 3:13 am
Location: India

Post by xch2005 »

There was invalid data in the column and now looks fine
Post Reply