null value to timestamp

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
Edwink
Participant
Posts: 47
Joined: Sat Aug 19, 2006 4:57 am
Location: Chennai

null value to timestamp

Post by Edwink »

Friends,
when i tried to default the timestamp filed with null value("") in in transformation i am getting the folllowing error
APT_CombinedOperatorController,2: Conversion error calling conversion routine timestamp_from_ustring data may have been lost
Ora_Lot_Attributes,0: Failure during execution of operator logic.

but if i populate some timestamp field its running fine..

my requirement is i have pass(default) null value to the target field..
target datatype timestamp 38

Thanks
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

What function(s) are you using to change string to timestamp and for null handling?
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Edwink
Participant
Posts: 47
Joined: Sat Aug 19, 2006 4:57 am
Location: Chennai

Post by Edwink »

i am not using any function convet string to time stamp m just hard coding as ""
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

"" is not a NULL and certainly not a valid timestamp and hance your error. Use SetNull() in transformer or make_null() in modify stage.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
deepa_bhagia
Participant
Posts: 7
Joined: Wed May 17, 2006 12:41 am
Location: Pune

Post by deepa_bhagia »

hardcode the column in the transformer before the target to SetNull()
ramoos99
Participant
Posts: 2
Joined: Thu Jun 22, 2006 9:32 pm

Post by ramoos99 »

DSguru2B wrote:"" is not a NULL and certainly not a valid timestamp and hance your error. Use SetNull() in transformer or make_null() in modify stage.
I Hope there is no make_null() in Modify stage
Hummer
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Why do you hope that?

There IS a make_null() function for the Modify stage. Unfortunately the Parallel Job Developer's Guide documents this incorrectly. You also need to read the Orchestrate Operators manual.
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