MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

MQ: How to clear the messages from a queue ?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Sat Apr 08, 2006 2:01 pm    Post subject: MQ: How to clear the messages from a queue ? Reply with quote

Hi,
We are on IBM WebSphere MQ for z/OS V6. Is it possible to drain the messages off the queue without running an application program that does MQGET for the messages ?

I looked up the Command Reference manual and found a CLEAR QLOCAL command, which is NOT applicable for OS/390. Search on the net has not been fruitful either.
_________________
ALL opinions are welcome.

Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
Back to top
View user's profile Send private message
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Sun Apr 09, 2006 5:56 am    Post subject: Reply with quote

I was executing CLEAR QLOCAL incorrectly. Embarassed This is the working step:
Code:

//STEP002  EXEC PGM=CSQUTIL,           
//            PARM='QMGR',             
//            COND=(0,LT)               
//STEPLIB  DD DSN=HLQ.SCSQANLE,DISP=SHR
//         DD DSN=HLQ.SCSQAUTH,DISP=SHR
//SYSIN    DD *                         
 COMMAND DDNAME(CMDIN)                 
/*                                     
//CMDIN    DD *                         
 CLEAR QLOCAL(HLQ.MLQ.Q00291)           
/*                                     
//SYSPRINT DD SYSOUT=I                 

_________________
ALL opinions are welcome.

Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware All times are GMT - 5 Hours
Page 1 of 1

 
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


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group