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
Transfering data from VARCHAR field to a NUMBER field
Moderators: chulett, rschirm, roy
You actually don't need to do anything special to 'convert' a Varchar to a Numeric field in Server, it all happens automatically. There is an assumption, however, that what data is in the Varchar field is appropriate for a numeric field. Your error indicates that it isn't, meaning there are characters there that Oracle doesn't consider appropriate for a NUMBER field. Silly things like letters, perhaps.
Have you looked to see what is actually in the problem field? That will tell you what you need to do to solve the problem. It may be as simple as using the DIGITS transform, but without knowing what is causing the issue that would just be a guess.
Have you looked to see what is actually in the problem field? That will tell you what you need to do to solve the problem. It may be as simple as using the DIGITS transform, but without knowing what is causing the issue that would just be a guess.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers