NULL Handling

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
cosec
Premium Member
Premium Member
Posts: 230
Joined: Tue May 08, 2007 8:10 pm

NULL Handling

Post by cosec »

When Loading From a Fixed Width Sequential File (Space between columns =1 ) how to handle null values....do I have to validate every column ? for eg

In the transformer for date column and timestamp column I have a validation such as = If trim(Arg1)="" then @null else iconv(trim(arg1))

Is there better way to handle the nulls ?

In one of the integer columns when the value is blank and it's loaded to nullable Column I get a warning saying that the string cannot be converted and is a null.....how can i avoid the warning ?

Pls help



If the Date is NUll
Timestamp
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Basically answered in your other thread. Yes, if your data is problematic then you could need to validate / cleanse each and every field.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply