Difference between Decimal and Numeric data types?

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
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Difference between Decimal and Numeric data types?

Post by chulett »

Someone asked me this today and :oops: I couldn't provide a coherent answer. Can someone help out with the difference in a Server Job if one defines a field as Decimal versus Numeric? Is there any? Does it depend on the underlying O/S and is a matter of precision?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

DataStage (and UniVerse) treat DECIMAL and NUMERIC as synonyms. They refer to a numeric data type with a fixed number of decimal places.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Thanks! Good to know we have two different data types that aren't different at all. :? Any idea if it makes a difference to some of the passive stages, say like OCI?
-craig

"You can never have too many knives" -- Logan Nine Fingers
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

DataStage has to map multiple disparate data types into its own generic data types. This holds true for both inbound and outbound data. That's why it's so important to use the source and target imported metadata rather than make it up or attempt to use source metadata for a target.

For the purposes of DataStage, the scaling is important because of the application of it done by Sequential stages, but whether its NUMERIC or DECIMAL is treated the same I believe.
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