Scale of decimal column

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
jzparad
Charter Member
Charter Member
Posts: 151
Joined: Thu Apr 01, 2004 9:37 pm

Scale of decimal column

Post by jzparad »

I'm getting the following error in a transformer stage

Code: Select all

Scale of Decimal column IATE_PERC must be in the range 0 to 1
when defining a column as follows:
SQL Type: Decimal
Length: 1
Scale: 3

I've found a reference to a similar problem <a href=viewtopic.php?t=82493&highlight=Scale+o ... mn>here</a>
but it claims that this was a bug in 5.1 and should have been fixed since. I'm using 7.5.

Does anyone have more information on this?
Jim Paradies
davidnemirovsky
Participant
Posts: 85
Joined: Fri Jun 04, 2004 2:30 am
Location: Melbourne, Australia
Contact:

Post by davidnemirovsky »

SQL Type: Decimal
Length: 1
Scale: 3
If the length of the column is 1, then where do you expect the remainder to be stored?

Try increasing the length of your column.
Cheers,
Dave Nemirovsky
jzparad
Charter Member
Charter Member
Posts: 151
Joined: Thu Apr 01, 2004 9:37 pm

Post by jzparad »

Oops!



:oops:

Thanks David
Jim Paradies
davidnemirovsky
Participant
Posts: 85
Joined: Fri Jun 04, 2004 2:30 am
Location: Melbourne, Australia
Contact:

Post by davidnemirovsky »

No problem jzparad, we all make silly mistakes at one time or another. :lol:
Cheers,
Dave Nemirovsky
Post Reply