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

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
  • MandarS
    MandarS
    9 Posts
    ACCEPTED ANSWER

    Re: MQCB giving enviornment error...

    ‏2013-04-19T05:13:38Z  

    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

  • Morag Hughson
    Morag Hughson
    140 Posts

    Re: MQCB giving enviornment error...

    ‏2013-04-18T18:00:00Z  

    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?

  • MandarS
    MandarS
    9 Posts

    Re: MQCB giving enviornment error...

    ‏2013-04-19T05:13:38Z  

    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