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 » General IBM MQ Support » Message PutDate/PutTime update

Post new topic  Reply to topic
 Message PutDate/PutTime update « View previous topic :: View next topic » 
Author Message
dexgk007
PostPosted: Tue Jun 23, 2009 12:46 am    Post subject: Message PutDate/PutTime update Reply with quote

Newbie

Joined: 14 Apr 2009
Posts: 4

Hi,
I'm currently writing python scripts in order to transfer messages between queues.
I want to keep the original Timestamp of the messages but when the messages are put on the target queue, the date is put on "NOW" (the current date/hour).
getq = pymqi.Queue(qm1, 'QL.TEST', MQOO_INPUT_SHARED)
putq = pymqi.Queue(qm1, 'QL.TEST2', MQOO_OUTPUT)
gmo.Options = MQGMO_NO_SYNCPOINT
md = pymqi.md()
msg = getq.get(None, md, gmo)
md.set(PutDate = '20080924')
putq.put(msg, md)
How is it possible to keep the original timestamp of the message in the target queue ?
Back to top
View user's profile Send private message
Mr Butcher
PostPosted: Tue Jun 23, 2009 1:35 am    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

check the pass, copy and set context options in the APR / APG manuals. using these option require additional security settings (depends on how your settings are).
_________________
Regards, Butcher
Back to top
View user's profile Send private message
dexgk007
PostPosted: Wed Jun 24, 2009 5:01 am    Post subject: Reply with quote

Newbie

Joined: 14 Apr 2009
Posts: 4

Thanks a lot! It is now solved and I am able to change also other MQMD fields.
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 » General IBM MQ Support » Message PutDate/PutTime update
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.