DSXchange: DataStage and IBM Websphere Data Integration Forum
View next topic
View previous topic
Add To Favorites
Author Message
nyk1989
Participant



Joined: 14 Dec 2015
Posts: 22

Points: 269

Post Posted: Mon Aug 21, 2017 6:55 am Reply with quote    Back to top    

DataStage® Release: 9x
Job Type: Parallel
OS: Unix
Hi guys,

I am getting XML message for my source data which has a TIME attribute with value like "2017-08-18T16:00:54.368+01:00"

I have extracted this value from the XML and stored in a field in transformer with datatype as varchar and the value after peeking into it was
"2017-08-1816:00:54.368"

So this is fine - i am happy with it.

Now, the thing is I want to change the format of this data into %dd-%mmm-%yyyy%hh%nn%ss.3

I have tried many conversions but this format change is not happening and the microseconds value gets dropped and gets replaced with '000'.

Any ideas guys how we can do this??
chulett

Premium Poster


since January 2006

Group memberships:
Premium Members, Inner Circle, Server to Parallel Transition Group

Joined: 12 Nov 2002
Posts: 42033
Location: Denver, CO
Points: 215738

Post Posted: Mon Aug 21, 2017 7:34 am Reply with quote    Back to top    

So... how exactly are you attempting to change the format? Does it involve an actual timestamp field, perhaps one that doesn't have microseconds enabled?

_________________
-craig

<this space for rent>
Rate this response:  
Not yet rated
Display posts from previous:       

Add To Favorites
View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2002 phpBB Group
Theme & Graphics by Daz :: Portal by Smartor
All times are GMT - 6 Hours