Hi Friends,
I am very new to MQ. I was facing a issue and wanted to check the depth of MQ via CICS regions. is there any way/cics command to check MQ depth.
How to check MQ depth
-
- Posts: 205
- Joined: Tue Oct 18, 2011 1:27 am
- Skillset: IBM Mainframe
- Referer: Internet
How to check MQ depth
Thanks
Nikesh Rai
Nikesh Rai
-
- Global moderator
- Posts: 3720
- Joined: Sat Dec 19, 2009 8:32 pm
- Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
- Referer: other forum
- Location: Dubuque, Iowa, USA
Re: How to check MQ depth
MQ Series is a totally separate product offering from CICS. As such, there's no CICS commands to access MQ Series. You might be able to write a CICS program to interface to MQ and do your check, but whether or not that is possible depends upon the MQ API (which I know nothing about).
-
- Posts: 205
- Joined: Tue Oct 18, 2011 1:27 am
- Skillset: IBM Mainframe
- Referer: Internet
Re: How to check MQ depth
Thanks Robert,
I checked with CICS admin, and got same reply. However, I got a tool on mainframe panel.. MQSeries and I was able to check MQ depths belongs to a specific Queue manager.
I checked with CICS admin, and got same reply. However, I got a tool on mainframe panel.. MQSeries and I was able to check MQ depths belongs to a specific Queue manager.
Thanks
Nikesh Rai
Nikesh Rai
-
- Posts: 381
- Joined: Tue Jan 28, 2014 1:52 pm
- Skillset: COBOL, JCL, DFSORT, VSAM
- Referer: Google
Re: How to check MQ depth
Hello,
I haven't worked with MQ-Manager for a while so the information is a little foggy, but will give it a shot.
If you're looking for this solution in PROD, then pre-requisite is having access to MQ-Manager panels, most sites restrict this access; going by your last post, this is already sorted.
Once accesses are in place, then on MQ Manager browse panel (this is the primary panel that opens up), user can browse the Queue under a Queue Manager; it brings up a list of MQ. Pressing F11 here shows 'Queue Depth' on extreme right.
Few sites have tools such as Omegamon, user can use the MQ Monitor option of Omegamon and browse this information, pre-requisite being OMEGAMON access. Same applies for TMON, I have not used TMON so cannot attest to where the exact information is located, but I can assure you 'TMON for MQ' has this solution in place.
OR, you can always query the queue depth.
A quick google search returned the below JCL (which is presented here as-is) from another forum; see if this helps:
Lastly, if I understand it right, the queue depth is not in CICS region but the MQ manager. Reason for using the term CICS-MQ-queue-depth in general colloqui is because here the MQ manager (hence subsequently the queue) is connected to a certain CICS region, hence it is interpreted as being owned by the CICS, whereas CICS only interfaces to MQ.
nikesh_rai wrote:...I checked with CICS admin, and got same reply. However, I got a tool on mainframe panel.. MQSeries and I was able to check MQ depths belongs to a specific Queue manager.
I haven't worked with MQ-Manager for a while so the information is a little foggy, but will give it a shot.
If you're looking for this solution in PROD, then pre-requisite is having access to MQ-Manager panels, most sites restrict this access; going by your last post, this is already sorted.
Once accesses are in place, then on MQ Manager browse panel (this is the primary panel that opens up), user can browse the Queue under a Queue Manager; it brings up a list of MQ. Pressing F11 here shows 'Queue Depth' on extreme right.
Few sites have tools such as Omegamon, user can use the MQ Monitor option of Omegamon and browse this information, pre-requisite being OMEGAMON access. Same applies for TMON, I have not used TMON so cannot attest to where the exact information is located, but I can assure you 'TMON for MQ' has this solution in place.
OR, you can always query the queue depth.
A quick google search returned the below JCL (which is presented here as-is) from another forum; see if this helps:
Code: Select all
//ERTCTEST EXEC PGM=CSQUTIL,PARM='QMGR'
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
COMMAND DDNAME(COMMANDS) FAILURE(STOP)
//*
//COMMANDS DD *
DISPLAY QSTATUS(QNAME) CMDSCOPE(QMGR) CURDEPTH
/*
Lastly, if I understand it right, the queue depth is not in CICS region but the MQ manager. Reason for using the term CICS-MQ-queue-depth in general colloqui is because here the MQ manager (hence subsequently the queue) is connected to a certain CICS region, hence it is interpreted as being owned by the CICS, whereas CICS only interfaces to MQ.
-
- Posts: 205
- Joined: Tue Oct 18, 2011 1:27 am
- Skillset: IBM Mainframe
- Referer: Internet
Re: How to check MQ depth
Hi Aki,
Thanks for the above information. It's really very useful and clarified some of my unasked doubts.
Thanks for the above information. It's really very useful and clarified some of my unasked doubts.

Thanks
Nikesh Rai
Nikesh Rai
-
- Similar Topics
- Replies
- Views
- Last post
-
- 0
- 3488
-
by zeller56
View the latest post
Sun Oct 01, 2023 1:50 am
-
- 10
- 4181
-
by chillmo
View the latest post
Thu Mar 13, 2025 12:01 am
-
-
Getting 0F01C008 Error while running SMP/e Apply Check Job
by csakil » Tue Apr 06, 2021 10:58 pm » in System programming - 0
- 2849
-
by csakil
View the latest post
Tue Apr 06, 2021 10:58 pm
-
-
-
Security Check for Data centre migration
by aarvalar1 » Fri Apr 14, 2023 4:58 pm » in Mainframe Security - 2
- 2536
-
by aarvalar1
View the latest post
Mon Apr 17, 2023 2:50 pm
-
-
-
Need to check whether file is ESDS file or not by using REXX
by Devrana » Sat Oct 05, 2024 2:28 pm » in CLIST & REXX - 6
- 3146
-
by sergeyken
View the latest post
Tue Oct 08, 2024 5:25 pm
-