Null handling issue

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
prasson_ibm
Premium Member
Premium Member
Posts: 536
Joined: Thu Oct 11, 2007 1:48 am
Location: Bangalore

Null handling issue

Post by prasson_ibm »

Hi all,

I have job design where data is written to seq file with "UNKNOWN" whwerever null is coming from the source.

While reading the file given null field value='UNKNOWN' in format tab so this will convert all 'UNKNOWN' data to null in seq file.

My source data coming as 'UNKNOWN' ,so my confusion is do 'UNKNOWN'(Src null) match with seq. file data i.e. null.

Regards
Prasoon
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I'm confused too. :?

If you are trying to compare non-file sourced data with 'UNKNOWN' as the value to that same value sourced from a file where you've converted that to null, then they won't match. Don't set the null field value if you want to compare them.

If you were asking something else, please... rephrase.
-craig

"You can never have too many knives" -- Logan Nine Fingers
zulfi123786
Premium Member
Premium Member
Posts: 730
Joined: Tue Nov 04, 2008 10:14 am
Location: Bangalore

Post by zulfi123786 »

The basic rule with Null Field values in seq files is "Do not use a Null Field value that has a non zero probability to be a part of the file data" hence you need to use a string which you are sure that it wont be appearing in the file.
- Zulfi
Post Reply