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 » Reading old messages from queue

Post new topic  Reply to topic
 Reading old messages from queue « View previous topic :: View next topic » 
Author Message
ramanna.aakasa
PostPosted: Thu May 24, 2007 7:24 am    Post subject: Reading old messages from queue Reply with quote

Newbie

Joined: 07 Jul 2006
Posts: 1

How do i read messages that are older than a certain date from a queue ?

Basically i have a queue (we call staging queue), that has messages queued up in it ever since we deployed the application. we are trying implement some kind of maintainance like delete any messages older than a month. I am not sure how i can get the messages based on a date ? . Any help would be appreciated.
Back to top
View user's profile Send private message
rparti
PostPosted: Thu May 24, 2007 7:32 am    Post subject: Reply with quote

Voyager

Joined: 05 Oct 2005
Posts: 86
Location: U.S.A.

You can browse each message and check the date. If the date is less than a month ten continue browsing.

If the date is older than a month then do a MQGET
Back to top
View user's profile Send private message
zpat
PostPosted: Thu May 24, 2007 7:33 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Browse queue, look at the PUTDATE in the MQMD and then GET_MESSAGE_UNDER_CURSOR for the ones you want to process.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu May 24, 2007 10:51 am    Post subject: Re: Reading old messages from queue Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

ramanna.aakasa wrote:
we are trying implement some kind of maintainance like delete any messages older than a month.


You might be better served setting message expiry and getting MQ to delete messages that are part their sell-by date.
_________________
Honesty is the best policy.
Insanity is the best defence.
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 » Reading old messages from queue
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.