How to insert exponential numbers in Oracle?

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
adrian
Participant
Posts: 10
Joined: Wed Jul 14, 2004 1:59 am
Location: Bucharest, Romania

How to insert exponential numbers in Oracle?

Post by adrian »

Hi all,

I have setup a simple job for a staging area. This job reads some data from a source table in Oracle , add some fields, write data to a file and then it suppose to insert it in another table in Oracle. For Oracle connection I use ODBC.
The problem appeared from a field which is defined as NUMBER in Oracle and it has sometimes exponential values. The message from log is below:

abc1..ODBC_6.IDENT1.DSLink7: DSD.BCIPut call to SQLExecute failed.
SQL statement:INSERT INTO ORADEVSTAGE.ABC(DUNS_NUMBER) VALUES (?)
SQLSTATE=22005, DBMS.CODE=0
[DataStage][SQL Client]Non-numeric data was found where numeric required

DUNS_NUMBER = 9.99E125


Any ideas how to handle this situation?
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

Hi,
The real qustion is how is the number suposed to be seen in the table?
if it is as with regular number you'll need to convert it, to the required format, or is the problem in the source data?.
is there any reason why you don't use the plugin stage to oracel?

IHTH,
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
rasi
Participant
Posts: 464
Joined: Fri Oct 25, 2002 1:33 am
Location: Australia, Sydney

Post by rasi »

Check your metadate when you write to a file and check is there any transformation which transforms as string. Also check the metadata of the next jobs which reads from sequential file.

Post your findings

Thanks
Siva
adrian
Participant
Posts: 10
Joined: Wed Jul 14, 2004 1:59 am
Location: Bucharest, Romania

Post by adrian »

The column gets translated as double with length 15 in both stages.
Post Reply