Default integer values comes as '0'

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
tsktsk123
Participant
Posts: 32
Joined: Thu Dec 25, 2003 11:59 am

Default integer values comes as '0'

Post by tsktsk123 »

Hi,

I like to know how we can pass the default value as NULL if some integer column comes as NULL from source. Currently when we load value to an integer column, it get loaded with '0' if the source value comes as NULL. The only option i could see now is to check for spaces(blank) using trim function and then set the value as Null if it is blank. I want to know if there is any other way of doing it by changing some options in datastage i.e. by changing the enviromental variables...etc

Appreciate any response on this.

regards,
senthil
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

If your integer column is set to be NULLable then it will pass on null values correctly.
tsktsk123
Participant
Posts: 32
Joined: Thu Dec 25, 2003 11:59 am

Post by tsktsk123 »

ArndW wrote:If your integer column is set to be NULLable then it will pass on null values correctly. ...
thanks for your input, the issue is resolved.
Post Reply