Numeric insert question

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
JPalatianos
Premium Member
Premium Member
Posts: 306
Joined: Wed Jun 21, 2006 11:41 am

Numeric insert question

Post by JPalatianos »

Hi folks,
One of the developers here is loading a UDB column defined as decimal(7,2) and the delimited file he is using as input has the numeric fields that are positive preceded with a "+" sign for that column. Would datstage throw out the following error for the "+" sign or is there something else we should be looking for.
SQLSTATE=22005, DBMS.CODE=0
[DataStage][SQL Client][ODBC][DataDirect][ODBC DB2 Wire Protocol driver]Invalid character value. Error in parameter 25.

Thanks -- John
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

That might be it. Remove the + sign using the CONVERT() function and then try. If the error goes away then that was it, else more investigation is needed.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply