decimal point

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
Stef
Participant
Posts: 24
Joined: Wed May 21, 2003 12:37 pm
Location: Montreal, Canada

decimal point

Post by Stef »

Hi all,
I have to load a sequential file (the fields are comma separated) into an Oracle table. One of the fields is decimal 6 with scale 2. Values for this field are for example:

100.40
399.00.

Nothing is copied from the file to the Oracle table. The error message is "not valid number".

Any kind of suggestion will be particularly appreciated. Thank you very much for attention, Stef.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Stef

Look at your generated SQL in the insert or update statement. The error should show it in the log as well. If your metadata is wrong then it will quote a number and Oracle will complain.

Example: '100.00' instead of 100.00

Kim.

Kim Duke
DwNav - ETL Navigator
www.Duke-Consulting.com
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Try adding zero to the input number. This forces the result to be a number. You can also format it so that it specifically meets your output requirements. For example:
Fmt((InputLink.ColumnName + 0), "6R2")


Ray Wurlod
Education and Consulting Services
ABN 57 092 448 518
Post Reply