Page 1 of 1

In-Band Nulls and Out-Band Nulls Make Null function

Posted: Tue Jan 22, 2008 2:44 pm
by harishvardhan
How does In-band null differ from a Out-Band Null. What is the use of the null function MakeNull?
MakeNull Change an in-band null
to out of band null
any (column)
string (string)
-
Thanks,
H

Posted: Tue Jan 22, 2008 6:21 pm
by ray.wurlod
An out-of-band null is DataStage's internal representation of null. It's a single byte with only the high bit set (128 if it were a uint8).

An in-band null is a value that is legal for the domain of the field, but which your business model has designated will represent "unknown". For example you may have used -99 to represent "unknown" for a set of integer codes. -99 would be the in-band null for that field. Similarly you might choose "9999-12-31" to be the in-band null for a date type.

Posted: Tue Apr 27, 2010 5:53 am
by zulfi123786
when we use setnull() it would be out band null but how to convert out band null to in band null; makenull will do the vice versa how abt the other side?
And where do can we make a choice of using in band null or out band null for nullable fields?

Posted: Tue Apr 27, 2010 2:43 pm
by ray.wurlod
Create in-band nulls simply by assigning the chosen null-representing value.

Posted: Mon Aug 09, 2010 11:59 pm
by zulfi123786
ray.wurlod wrote:Create in-band nulls simply by assigning the chosen null-representing value.
That means at all places where we use setnull() to insert null we have to assign this value

Ex: If X=' ' Then SetNull()

has to be modified as

If X=' ' Then -99

and this -99 will be logically treated as NULLS

Did i get you right?

Posted: Tue Aug 10, 2010 12:36 am
by ray.wurlod
I don't know - did U respond?

Posted: Sun Nov 14, 2010 3:49 am
by zulfi123786
ray.wurlod wrote:An out-of-band null is DataStage's internal representation of null. It's a single byte with only the high bit set (128 if it were a uint8).
Does datastage reserve one bit for sign and one bit for null indication and use the rest for holding the value
In such case for signed int8 the max value that can be held becomes 32
(int8:-signed integer with 1 byte for storage; please correct if wrong)

Posted: Sun Nov 14, 2010 1:52 pm
by ray.wurlod
No, the binary representation of NULL in DataStage is 10000000.