how to load null into decimal datatype without warning

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
Jagan617
Participant
Posts: 42
Joined: Thu Jun 05, 2008 7:37 pm

how to load null into decimal datatype without warning

Post by Jagan617 »

Hi,

I am trying to load null into decimal column from file into a table and it is throwing warning. I have used Isnull function and tried to load space instead of null but it is throwing warning message. Can any one assist me in loading null into decimal without warnings.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Post your actual, unedited warning(s).
-craig

"You can never have too many knives" -- Logan Nine Fingers
Jagan617
Participant
Posts: 42
Joined: Thu Jun 05, 2008 7:37 pm

Post by Jagan617 »

Below is the actual warning

Transformer_118: At row 13947, link "DSLink122", while processing column "COY_CONTR"
Value treated as NULL
Attempt to convert String value " " to Double type unsuccessful
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Why convert the null to a space which is a value that cannot be loaded into a decimal field? Leave it alone, let it load as is.
-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 »

You're not trying to load NULL, you're trying to load a space character, which (as noted) is not legal for Decimal data type. Therefore DataStage changes it to NULL and alerts you of that fact. To eliminate the warning, don't attempt to load " " into a Decimal field.
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