Error in timestamp_from_string function in Modify stage

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
chandrayadaraju
Participant
Posts: 6
Joined: Tue Mar 28, 2006 5:59 pm

Error in timestamp_from_string function in Modify stage

Post by chandrayadaraju »

Hi All,

I am using the timestamp_from_string function in Modify stage. The Specification is as below

SRC_CREATE_DTTM:timestamp=timestamp_from_string[%yyyy-%mm-%dd hh:nn:ss](SRC_CREATE_DTTM)

The Function is returning the output in timestamp format but removing the time portion of the string and putting 00:00:00.

Input is (string): 2009-05-29 10:16:38
Output is(timestamp): 2009-05-29 00:00:00

I am just curious whether anyone is aware of this issue and know the solution. If so, Please reply.

I appreciate your suggestions to this.


Thanks
Chandra
us1aslam1us
Charter Member
Charter Member
Posts: 822
Joined: Sat Sep 17, 2005 5:25 pm
Location: USA

Post by us1aslam1us »

Nothing wrong here but change [%yyyy-%mm-%dd hh:nn:ss] to [%yyyy-%mm-%dd %hh:%nn:%ss] and try it.
I haven't failed, I've found 10,000 ways that don't work.
Thomas Alva Edison(1847-1931)
Post Reply