how to import/manually code Number datatype(Oracle) into DS

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
ameet.penkar
Participant
Posts: 8
Joined: Tue Feb 10, 2004 8:06 am

how to import/manually code Number datatype(Oracle) into DS

Post by ameet.penkar »

Hi

In our back end, one of the columns is defined as Number(NO Precision and NO scale given).When metadata is imported, DS takes it as Decimal(38,0).
In practice, we require the Scale very much, and the job gives warnings

Any suggestions on how to tckle this?

Ameet
ogmios
Participant
Posts: 659
Joined: Tue Mar 11, 2003 3:40 pm

Re: how to import/manually code Number datatype(Oracle) into

Post by ogmios »

Change it manually to e.g. Decimal(40,0)

Ogmios
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

Hi and welcome aboard.
what is you import method (ODBC or plugin)?, if you use ODBC try using native plugin.
what do you see when you extract the table's meta data via the DB tools in that column's definition?
In My Humble Opinion defining numeric/decimal columns as default percision and scale is not good practice but some people mihgt think otherwise.
if the actual DDL has only numeric and no scale/percision you can try getting the DBA's to change it or manualy change your table definitions to meet your needs (as already said).

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
Post Reply