conversion of string to timestamp with microseconds

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
devesh_ssingh
Participant
Posts: 148
Joined: Thu Apr 10, 2008 12:47 am

conversion of string to timestamp with microseconds

Post by devesh_ssingh »

Function used in transformer ---> StringToTimestamp(XMLInput_db_tgt_ln.EVENTTIME
[1,10] : ' ' : XMLInput_db_tgt_ln.EVENTTIME [12,8] : '.': XMLInput_db_tgt_ln.EVENTTIME[14,6],"%yyyy-%mm-%dd %hh:%nn:%ss.6")

This funtion i have used .but i am not getting the actual output.My output is 2008-06-25 08:57:36.000000.i need the following input result

Required output--->2008-06-25 08:57:36.008938.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

The target column attribute "Extended" for milliseconds needs to be enabled.
Post Reply