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 Discussion » delete msgs from a Queue

Post new topic  Reply to topic
 delete msgs from a Queue « View previous topic :: View next topic » 
Author Message
ammar
PostPosted: Tue Nov 25, 2008 5:45 am    Post subject: delete msgs from a Queue Reply with quote

Novice

Joined: 10 Nov 2008
Posts: 12

i want to wirte a program that can clear whole qeue or if it can delete some specified number of msg eg from 1-10 tell me which method will be better n for me pcf commands or using get with syncpoint options
how can i delete a specified num of msgs through pcf commands
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Nov 25, 2008 5:53 am    Post subject: Re: delete msgs from a Queue Reply with quote

Grand High Poobah

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

ammar wrote:
i want to wirte a program that can clear whole qeue or if it can delete some specified number of msg eg from 1-10 tell me which method will be better n for me pcf commands or using get with syncpoint options


Use get - it's easier in terms of security. If you're clearing the queue (or positively deleting messages) why use syncpoint?

And why delete based on number? Why not age and/or content?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
ammar
PostPosted: Tue Nov 25, 2008 6:00 am    Post subject: Re: delete msgs from a Queue Reply with quote

Novice

Joined: 10 Nov 2008
Posts: 12

Vitor wrote:
ammar wrote:
i want to wirte a program that can clear whole qeue or if it can delete some specified number of msg eg from 1-10 tell me which method will be better n for me pcf commands or using get with syncpoint options


Use get - it's easier in terms of security. If you're clearing the queue (or positively deleting messages) why use syncpoint?

And why delete based on number? Why not age and/or content?


Get with what getmessageoptions because i now only syncpoint or browsemessageundercursor are there any other options for deleting messages
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Nov 25, 2008 6:05 am    Post subject: Re: delete msgs from a Queue Reply with quote

Grand High Poobah

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

ammar wrote:
Get with what getmessageoptions because i now only syncpoint


What?

ammar wrote:
browsemessageundercursor


You can't get a message with a browse. You get a message with a get.

ammar wrote:
are there any other options for deleting messages


Deleting messages is just about getting them.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
sagitwang
PostPosted: Mon Dec 01, 2008 3:25 am    Post subject: Reply with quote

Novice

Joined: 01 Dec 2008
Posts: 13

use the get thing
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Dec 01, 2008 3:30 am    Post subject: Reply with quote

Grand High Poobah

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

sagitwang wrote:
use the get thing



_________________
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 Discussion » delete msgs from a 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.