ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » How to get the timestamp in hh:mm:ssss format in Trace Node

Post new topic  Reply to topic
 How to get the timestamp in hh:mm:ssss format in Trace Node « View previous topic :: View next topic » 
Author Message
chris boehnke
PostPosted: Wed May 23, 2007 10:14 am    Post subject: How to get the timestamp in hh:mm:ssss format in Trace Node Reply with quote

Partisan

Joined: 25 Jul 2006
Posts: 369

Hi guys,
I am recording the date and timestamp of a message by using a Trace Node with the statement:
Date is: ${EXTRACT(YEAR FROM CURRENT_DATE)}-${EXTRACT(MONTH FROM CURRENT_DATE)}-${EXTRACT (DAY FROM CURRENT_DATE)} Time is: ${EXTRACT(HOUR FROM CURRENT_TIMESTAMP)}:${EXTRACT(MINUTE FROM CURRENT_TIMESTAMP)}:${CAST(CAST((1000*EXTRACT(SECOND FROM CURRENT_TIME)) AS INTEGER) AS CHAR)}

The timestamp is recording as eg: 9:9:59799. Is there anyway to standardize the timestamp as 09:09:59799(hh:mm:sssss) inside a Trace Node?.
I know that we use 'funcPadNumber' function to achieve this in a Compute Node. I dont know how we can do it in a Trace Node. Can we somehow implement this function in a Trace Node or do we have some other option to achieve this?.

Thanks.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed May 23, 2007 1:25 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

If on V6 have you tried using the Format clause of CAST?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
mymq
PostPosted: Wed May 23, 2007 8:55 pm    Post subject: Reply with quote

Centurion

Joined: 01 Mar 2007
Posts: 101
Location: US-Greenwille

I think he means............. "SET S = CAST(CURRENT_DATE AS CHAR FORMAT 'dd-MM-yy')
_________________
--SRK--
Back to top
View user's profile Send private message Send e-mail
chris boehnke
PostPosted: Thu May 24, 2007 4:24 am    Post subject: Reply with quote

Partisan

Joined: 25 Jul 2006
Posts: 369

Hi Guys,
I set the date and time in this format:
${CURRENT-DATE}, ${CURRENT-TIME}

The current date is displaying as 2007-05-05 format(yyyy-mm-dd)

The current time is displaying as 09:09:09:99999(hh:mm:ss.millis).

i am OK with this format.

Thanks for your time and suggestions.
Chris
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » How to get the timestamp in hh:mm:ssss format in Trace Node
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.