IBM Support

MQINQ call receives Return Code 2018 (MQRC_HCONN_ERROR)

Question & Answer


Question

Why my application that will run in both TSO batch and IMS received return code 2018 from the MQINQ call when it executes in batch BMP mode? Previous calls such as MQCONN and MQOPEN complete successfully.

Answer

Because your code runs in two environments, the program must make decisions regarding which stub module to call. You were not making this decision for the MQINQ call, dynamically loading the IMS stub (MQINQ) for all instances. The IMS stub was being used by the batch invocation

Change your program to load the batch stub module (CSQBINQ) for the MQINQ call if running in batch. See WebSphere MQ Knowledge Center documentation Dynamically calling the WebSphere MQ stub: https://www.ibm.com/support/knowledgecenter/SSFKSJ_8.0.0/com.ibm.mq.dev.doc/q028780_.htm

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSEPH2","label":"IBM Information Management System (IMS)"},"Platform":[{"code":"PF035","label":"z\/OS"}],"Component":"","Version":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
10 October 2016

UID

dwa1310002