Null Hadling - Server Jobs

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
turash
Premium Member
Premium Member
Posts: 51
Joined: Fri Apr 06, 2007 10:09 am
Location: Edison, NJ

Null Hadling - Server Jobs

Post by turash »

Following are the list of null handling function i found in help of datastage/ Parallel section


HandleNull
IsNotNull
IsNull
NullToEmpty
NullToZero
NullToValue
MakeNull
SetNull

will these work in Server jobs (Transformation)?

How to handle null value for date type column (target - db2) ?
e.g. Default null date in Sybase is '1900-01-01'

Thanks in advance
relati
Participant
Posts: 17
Joined: Mon Oct 01, 2007 12:44 pm

Post by relati »

In response to your first question:

The following functions should work in Server:
IsNull
NullToEmpty
NullToZero

and you could make use of "Not" and "IsNull" together to get the same functionality of "IsNotNull".

I don't believe the rest are available in Server.

Hope this helps...
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

To create a null in server jobs use the system variable @NULL. Server jobs only have out-of-band null; they do not really have the concept of in-band null except in the format/column properties of table definitions of, particularly, sequential files, where you specify how null is represented in the file.

It is a simple matter to copy the NullToEmpty Transform and create your own NullToValue Transform.
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