Abs function is not working correctly

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
Prasanna
Participant
Posts: 2
Joined: Thu Jul 01, 2004 2:23 am

Abs function is not working correctly

Post by Prasanna »

Abs function is not working correctly.
For ex:
Abs(-12.56) returns 13.00.
ANSHULA
Participant
Posts: 12
Joined: Thu Mar 27, 2003 1:35 pm

Post by ANSHULA »

What is the definition (SQL type, length and scale) of input and output columns ?
If output column is declared Numeric without scale specification, then
Abs(-12.56) returns 13.00
If proper scale specified, then
Abs(-12.56) returns correct value.
Prasanna
Participant
Posts: 2
Joined: Thu Jul 01, 2004 2:23 am

Post by Prasanna »

ANSHULA wrote:What is the definition (SQL type, length and scale) of input and output columns ?
If output column is declared Numeric without scale specification, then
Abs(-12.56) returns 13.00
If proper scale specified, then
Abs(-12.56) returns correct value.
Output Column has been delcared as Numeric with length 20 and scale 6.
Post Reply