Null handling of Timestamp field in Modifystage

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
madsongtel
Participant
Posts: 31
Joined: Fri Aug 01, 2008 2:56 am

Null handling of Timestamp field in Modifystage

Post by madsongtel »

Hi All,

My source is delimiter text file, i am reading as char datatype for all columns. Timestamp filed coming as (2008-05-15-14.59.36.000000).
i am using modify stage to convert all datatypes and laod into DB2 table.
but for timestamp columns some times it as coming as null and i have to load as null only in table. when i get null then job is getting aborted with below error :DB2_Connector_467,3: Operator terminated abnormally: received signal SIGSEGV"

How can we handle nulls for timestmap field in modify stage and load as nulls only.

please help me.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Do you need to use an in-band null or an out-of-band null?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kmsekhar
Premium Member
Premium Member
Posts: 58
Joined: Fri Apr 16, 2010 12:58 pm
Location: Chn

Re: Null handling of Timestamp field in Modifystage

Post by kmsekhar »

Hi madsongtel,

Please go through with the below link it will brief you about Out-of-band to normal representation and normal to Out-of-band representation:

http://publib.boulder.ibm.com/infocente ... Nulls.html
madsongtel
Participant
Posts: 31
Joined: Fri Aug 01, 2008 2:56 am

Post by madsongtel »

Thanks Ray and kmsekhar, issue solved.
Post Reply