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 » Generate the MQRFH2.jms.Tms value from within a flow

Post new topic  Reply to topic
 Generate the MQRFH2.jms.Tms value from within a flow « View previous topic :: View next topic » 
Author Message
wolstek
PostPosted: Mon Jun 13, 2005 10:32 am    Post subject: Generate the MQRFH2.jms.Tms value from within a flow Reply with quote

Acolyte

Joined: 25 Jun 2001
Posts: 52
Location: Bristol, UK

My flow accepts an XMLNS message containing an MQRFH2 with jms. (WBIMB V5)

When I output the message to another queue, I want to update the Root.MQRFH2.jms.Tms (timestamp) value to reflect the actual put date/time.
I am unable to establish how to format the value required (which should look something like 111886533577, i.e some java timestamp format)

I have updated the MQMD.PutDate = CURRENT_DATE and MQMD PutTime = CURRENT_GMTTIME with "Message Context = Set All" on the MQOutput Node. This correctly sets the message putdate/time on the queue, but cannot establish how to do the Tms bit.

Is there some clever formatting that can be done in eSQL, are there other node properties that I can set to do it for me, or can I invoke a java method to do it for me, if so how would I go about that.

Any help gratefully appreciated.
Many Thanks
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Jun 13, 2005 10:37 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

I think you want the EXTRACT function.

Or a series of substring/positions on the results of casting a datetime to a string.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
wolstek
PostPosted: Mon Jun 13, 2005 10:42 am    Post subject: Reply with quote

Acolyte

Joined: 25 Jun 2001
Posts: 52
Location: Bristol, UK

I'm not sure that that applies in this case as I think that the Tms is a timestamp based on millisecs against a reference point or some other java internal format, which I am not sure.

For example the Tms value 1118684322711 represents a date-time of
2005-06-13-18.38.42.711

The normal extract will not give me these values. (will it ?)
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 » Generate the MQRFH2.jms.Tms value from within a flow
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.