Monday, September 26, 2011

MQ: How to delete all the messages from a MQ

The below sample job deletes all the messages from a MQ. CSQUTIL is a utility program which comes as part MQ product. 


//EMPTY EXEC PGM=CSQUTIL,PARM=('MQA1')

//STEPLIB DD DISP=SHR,DSN=MQM.SCSQANLE
//        DD DISP=SHR,DSN=MQM.SCSQAUTH
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
EMPTY QUEUE(MY.TEST.MQ)
/

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.