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
Was this topic helpful?
Document Information
Modified date:
10 October 2016
UID
dwa1310002