Transfering data from VARCHAR field to a NUMBER field

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
yaminids
Premium Member
Premium Member
Posts: 387
Joined: Mon Oct 18, 2004 1:04 pm

Transfering data from VARCHAR field to a NUMBER field

Post by yaminids »

Hello friends,

I am getting the following error when I tried to transfer data from a VARCHAR field to NUMBER field
"ORA-01722: invalid number"

Is it possibe to convert the data (similar to to_number() function)
using a particular function in DataStage?

Any help would be highly appreciated
Yamini
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

If it is truly a number stored in a varchar column, there's nothing to do in Server. It's obvious you are not loading a number, but something else. Consider removing any symbols that are used in string representations of numbers such as the following:
$ , % # /
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Post Reply