You can put a message to the SYSTEM.COMMAND.INPUT queue (assuming your program has the authority). DISPLAY QUEUE(MYQUEUE)CURDEPTH is the command. You have to specify a reply to q and qmgr. Then you get the reply messages and check the depth. I believe three messages are returned and the second one contains the depth. I haven't got time right now to look up the format, but it should be available in the Prorammable System Management manual.
Nick -----Original Message----- From: Schaeffer, Dave [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 2:26 PM To: [EMAIL PROTECTED] Subject: Queue depth in Cobol Hi, Is there a way to get the queue depth in a Cobol program? Dave Schaeffer IT Database Leader Bendix Commercial Vehicle Systems LLC Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive