If you invoke the WebSphere MQ API from a VSE/ESA batch application, you must link-edit a special object module, which intercepts and handles the WebSphere MQ calls, with the usercode by specifying:
INCLUDE MQBIBTCH
as part of the link-edit JCL.