We generally use DataStage to move data from sources to Oracle.
In Oracle, it's my understanding that there are different NUMBER data types:
NUMBER(6) would allow six digits max. I think that may mean 6 total including decimals, so you could have 4 before the decimal and 2 after, but not more than 6 total.
NUMBER(11,2) would allow 11, but 2 are reserved for the decimal.
NUMBER is unlimited in any direction.
So I figured we should just go with NUMBER since it will accomdate anything.
However, I'm not sure what the best way to use these data types in DataStage is.
Do you recommend using Decimal? What about the length and scale values?
NUMBER data types
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 1255
- Joined: Wed Feb 02, 2005 11:54 am
- Location: United States of America
You could use 'Numeric'. Or the best would be to allow DataStage itself to figure out what the datatype would by importing the table definition from Oracle and use this metadata in your jobs.
HTH,
Whale.
HTH,
Whale.
Anything that won't sell, I don't want to invent. Its sale is proof of utility, and utility is success.
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE
Sometimes it just doesn't matter. I asked a similar question a couple of years ago.
No, not really. NUMBER(6) is syntactically identical to NUMBER(6,0) if that helps.tracy wrote:NUMBER(6) would allow six digits max. I think that may mean 6 total including decimals, so you could have 4 before the decimal and 2 after, but not more than 6 total.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
I say stick to import. That way the table definition is untouched by human hands and least likely to contain errors.
You are, of course permitted - nay, encouraged - to type in column descriptions where these are absent.
You are, of course permitted - nay, encouraged - to type in column descriptions where these are absent.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.