datatype conversion

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
mohanraj
Participant
Posts: 48
Joined: Sat Mar 25, 2006 12:40 am
Location: bangalore

datatype conversion

Post by mohanraj »

hi friends

I am new to datastage.I am facing some problems while transfering data from flat files to oracle oci .
The problem is my incoming data is suppose like this 0.00053 in flat files and when i want to put in OCI i am giving datatye as decimal with precision 1 and scale 5.But i am not getting output and it is telling that precision should be more than the decimal.But even after changing precision also it is not transfering into OCI.

What shall i have to do

Thanks in advance

raju
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Welcome aboard. :D

You need to specify precision large enough to encompass all the digits in your number - at least (scale + 1).

When you imported the Oracle table definition, what were the precision and scale? What is the Oracle data type of the column in question?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

In you given example 0.00053, length = 6 and scale = 5.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
us1aslam1us
Charter Member
Charter Member
Posts: 822
Joined: Sat Sep 17, 2005 5:25 pm
Location: USA

Post by us1aslam1us »

kumar_s wrote:In you given example 0.00053, length = 6 and scale = 5.
Is it length=7 and scale=5 or length=6 and scale=5.

Sam
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Precision 6 and scale 5 will allow numbers less than 10.00000. Precision 7 and scale 5 will allow numbers less than 100.00000.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
mohanraj
Participant
Posts: 48
Joined: Sat Mar 25, 2006 12:40 am
Location: bangalore

thanks to all

Post by mohanraj »

hi to all

Thanks for your replies i got the answer

cheers..
raju
Post Reply