Topic
2 replies Latest Post - ‏2013-04-19T10:30:16Z by Morag Hughson
MandarS
MandarS
9 Posts
ACCEPTED ANSWER

Pinned topic MQCB giving environment error...

‏2013-04-17T11:59:44Z |

Hi All,
I'm trying to run the sample program amqscbf0.c which uses MQCB for registering the callback function "Message Consumer".

But MQCB is ending with reason code 2012 i.e. MQRC_ENVIRONMENT_ERROR.

below is the link for the Reason code 2012:

http://publib.boulder.ibm.com/infocenter/wmqv7/v7r1/topic/com.ibm.mq.doc/fm12190_.htm

I'm using AIX6.1.
I am kinda stuck at it.  . Looking forward for your suggestions.

Thanks in advance

Updated on 2014-02-19T13:47:41Z at 2014-02-19T13:47:41Z by Morag Hughson
  • Morag Hughson
    Morag Hughson
    140 Posts
    ACCEPTED ANSWER

    Re: MQCB giving enviornment error...

    ‏2013-04-18T18:00:00Z  in response to MandarS

    Can you supply the command you are using to run it - i.e. all the parameter, which will also indicate whether you are running amqscbf or amqscbfc (the client version). Can you also let us know whether you are running the pre-built version that came with the product installation or whether you have compiled the source part you mention (amqsbcf0.c) yourself and are running it. If you have built it yourself, did you ensure to create a threaded program?

  • This reply was deleted by Morag Hughson 2014-02-19T13:20:40Z. Reason for deletion: off topic about forum issues - now no longer applicable.
    • This reply was deleted by Morag Hughson 2014-02-19T13:20:34Z. Reason for deletion: off topic about forum issues - now no longer applicable.
  • MandarS
    MandarS
    9 Posts
    ACCEPTED ANSWER

    Re: MQCB giving enviornment error...

    ‏2013-04-19T05:13:38Z  in response to MandarS

    Hi Morag,

    Thanks for you reply. The issue is solved now. Actually we were compiling the code passing "-lmqic" instead we were suppose to use "-lmqic_r". Once again thanks for your help.

     

    Thanks