Skip to main content

MQ Series call (MQINQ) syntax

  • July 20, 2012
  • 4 replies
  • 1 view

Hi,

Our AcuCobol system interfaces with Mq Series successfully and we utilise calls such as MQCONN, MQOPEN and MQGET which are well documented and work well. For the first time I am trying to use the MQINQ call but can't find an example in the documentation or anywhere else. Can anyone give an example of this call being called using AcuCobol? 

What I'm really interested in is for what parameters I need to use 'BY REFERENCE' and which ones I need to use 'BY VALUE'.


#MQINQ

4 replies

  • Author
  • Rocketeer
  • 19312 replies
  • July 20, 2012

Hi,

Our AcuCobol system interfaces with Mq Series successfully and we utilise calls such as MQCONN, MQOPEN and MQGET which are well documented and work well. For the first time I am trying to use the MQINQ call but can't find an example in the documentation or anywhere else. Can anyone give an example of this call being called using AcuCobol? 

What I'm really interested in is for what parameters I need to use 'BY REFERENCE' and which ones I need to use 'BY VALUE'.


#MQINQ

publib.boulder.ibm.com/.../index.jsp


  • Author
  • Rocketeer
  • 19312 replies
  • July 20, 2012

Hi,

Our AcuCobol system interfaces with Mq Series successfully and we utilise calls such as MQCONN, MQOPEN and MQGET which are well documented and work well. For the first time I am trying to use the MQINQ call but can't find an example in the documentation or anywhere else. Can anyone give an example of this call being called using AcuCobol? 

What I'm really interested in is for what parameters I need to use 'BY REFERENCE' and which ones I need to use 'BY VALUE'.


#MQINQ

I found that link as well but unfortunately when making the call from AcuCobol you need need to specify "BY REFERENCE" or "BY VALUE" with the parameters which is the bit I can't work out.

There is a configuration variable that can be used that negates this requirement but that is not how we have our system configured.

I very such appreciate you having taken the time to help me with my problem.


  • Author
  • Rocketeer
  • 19312 replies
  • July 20, 2012

Hi,

Our AcuCobol system interfaces with Mq Series successfully and we utilise calls such as MQCONN, MQOPEN and MQGET which are well documented and work well. For the first time I am trying to use the MQINQ call but can't find an example in the documentation or anywhere else. Can anyone give an example of this call being called using AcuCobol? 

What I'm really interested in is for what parameters I need to use 'BY REFERENCE' and which ones I need to use 'BY VALUE'.


#MQINQ

I found that link as well but unfortunately when making the call from AcuCobol you need need to specify "BY REFERENCE" or "BY VALUE" with the parameters which is the bit I can't work out.

There is a configuration variable that can be used that negates this requirement but that is not how we have our system configured.

I very such appreciate you having taken the time to help me with my problem.


Stephen Hjerpe
  • Participating Frequently
  • 1100 replies
  • July 24, 2012

Hi,

Our AcuCobol system interfaces with Mq Series successfully and we utilise calls such as MQCONN, MQOPEN and MQGET which are well documented and work well. For the first time I am trying to use the MQINQ call but can't find an example in the documentation or anywhere else. Can anyone give an example of this call being called using AcuCobol? 

What I'm really interested in is for what parameters I need to use 'BY REFERENCE' and which ones I need to use 'BY VALUE'.


#MQINQ

'BY REFERENCE' would be the way to go. Also, Before you can inquire on a queue, you must open it using the MQOPEN call and specifying MQOO_INQUIRE.

There are more details here: publib.boulder.ibm.com/.../index.jsp