|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Jcl to remove n number of mesgaes from the queue |
« View previous topic :: View next topic » |
Author |
Message
|
prKinch |
Posted: Sat Nov 13, 2010 1:46 pm Post subject: Jcl to remove n number of mesgaes from the queue |
|
|
Novice
Joined: 31 Jan 2010 Posts: 15
|
Hi all
I need to remove the first 200 messages from the queue(contains 2000msgs),Can you please suggest a jcl for removing these messages. |
|
Back to top |
|
 |
gbaddeley |
Posted: Sun Nov 14, 2010 3:29 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
One of the sample programs supplied with MQ can do that.
Code: |
//GETMSG Â EXEC PGM=CSQ4BCJ1,REGION=1024K,
// Â PARM=('MQXX YOUR.QUEUE.NAME 1 D S')
//* Â PARM ARGUMENT 1 MQ SUBSYSTEM NAME
//* Â PARM ARGUMENT 2 LOCAL QUEUE NAME
//* Â PARM ARGUMENT 3 NUMBER OF MESSAGES TO GET
//* Â PARM ARGUMENT 4 TYPE OF GET, 'B' = BROWSE, 'D' = DESTRUCTIVE
//* Â PARM ARGUMENT 5 UOW COORDINATION, 'S' = SYNCPOINT, 'N' = NO SYNCPOINT
//STEPLIB Â DD DSN=SYS1.MQXX.SCSQLOAD,DISP=SHR
// Â Â Â Â DD DSN=SYS1.MQXX.SCSQAUTH,DISP=SHR
// Â Â Â Â DD DSN=SYS1.MQXX.SCSQANLE,DISP=SHR
//SYSOUT Â DD SYSOUT=*
//SYSPRINT DD SYSOUT=* |
The z/OS MQ sample programs are described in the APR, see http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=/com.ibm.mq.csqzal.doc/fg18000_.htm _________________ Glenn |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|