Numeric value out of range

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
jpraveen
Participant
Posts: 71
Joined: Sat Jun 06, 2009 7:10 am
Location: HYD

Numeric value out of range

Post by jpraveen »

Hi All

i am getting the following error,
the columns having datatypes of char,bit,tinyint and timestamp(23,3)

but i am getting the error Numeric value out of range,
i dont know which column having error,i can view the data and when i view the data it's seem ok.
APT_CombinedOperatorController,1: [IBM(DataDirect OEM)][ODBC SQL Server Driver]Numeric value out of range
and one column specialtycode(tinyint) its getting negative values like -78,-24,-9 etc,
i think we should change into posive values
if so how to do this

Thanks in advance
Jaypee
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

For starters, a TinyInt is only a single byte so the values you've posted for it are definitely 'out of range'.
-craig

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

Post by ray.wurlod »

(Signed) TinyInt has a domain of -128..+127. (Unsigned) TinyInt has a domain of 0..255. Check that your TinyInt is not unsigned.

Disable operator combination to learn which stage is throwing the error, and change array size to 1 to learn which row is throwing the error. At that time you may even be presented with the row data.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
jpraveen
Participant
Posts: 71
Joined: Sat Jun 06, 2009 7:10 am
Location: HYD

Post by jpraveen »

Hi

i had converted tinyint into integer
convert(integer,SpecialtyCode) as SpecialtyCode

and my problem solved
Jaypee
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

I suspect you had an unsigned TinyInt, then, and have changed it to a (not unsigned) Integer.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply