Convert timestamp format

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
muralidwhds
Participant
Posts: 39
Joined: Sat Jul 05, 2008 3:25 am
Location: chennai

Convert timestamp format

Post by muralidwhds »

Hi,

can anybody suggest me how to convert the Timestamp from db2 database to SQL server Db in Datastage server Edition.

YYYY-MM-DD HH:MI:SS.ssssss To YYYY-MM-DD HH:MI:SS.sss
MALLI MURALI
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Code: Select all

Left(InLink.TheLongTimestamp,23)
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

In other words, just chop off the last three "s" bits. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
muralidwhds
Participant
Posts: 39
Joined: Sat Jul 05, 2008 3:25 am
Location: chennai

Post by muralidwhds »

How can i?
chulett wrote:In other words, just chop off the last three "s" bits. :wink:
MALLI MURALI
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

How? With the syntax Ray posted, hence the 'in other words' comment. :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply