Error in type converstion

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
loveojha2
Participant
Posts: 362
Joined: Thu May 26, 2005 12:59 am

Post by loveojha2 »

Hope I will be helped in fixing the below error.
That's obvious, no need to mention. :wink:
The input column is a decimal and I doing some calculations on a specific column and trying to load into the target table.
What sort of calculation is this, is it involving any other column also, what is the data type of that column?
Can a column involved in the calculation have a null?(just check)
What is the target field's data type?
Success consists of getting up just one more time than you fall.
rcil
Charter Member
Charter Member
Posts: 70
Joined: Sat Jun 05, 2004 1:37 am

Post by rcil »

Thanks very much for the quick input.

I am trying to populate 3 columns using some simple calculations like addition, multiplication using another column which is of type decimal.

Code: Select all

Ex:

Col1 * Col2
Col1 * 100
Col2 * Col1
All the three target columns are of type decimal.
Thanks,
RCil
loveojha2
Participant
Posts: 362
Joined: Thu May 26, 2005 12:59 am

Post by loveojha2 »

How are you guessing that the error is something to do with these columns only?
Is there any date column also within the target table?
Can that be causing problem?
What datatype you have specified for date fields?
What is your target database?
Success consists of getting up just one more time than you fall.
rcil
Charter Member
Charter Member
Posts: 70
Joined: Sat Jun 05, 2004 1:37 am

Post by rcil »

I am not sure why and how but using the below function kind of solved the problem and loaded the records fine into the target database.

Oconv(Arg1, 'MD3')

Thanks again for all the inputs.

loveojha2 wrote:How are you guessing that the error is something to do with these columns only?
Is there any date column also within the target table?
Can that be causing problem?
What datatype you have specified for date fields?
What is your target database?
Thanks,
RCil
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Read more (in Help, or in the DataStage BASIC manual) about the MD conversion. Perhaps this will aid you in understanding how the different specifications you use differ from each other.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply