ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » MQCB giving enviornment error...

Post new topic  Reply to topic
 MQCB giving enviornment error... « View previous topic :: View next topic » 
Author Message
mandy13
PostPosted: Wed Apr 17, 2013 1:53 am    Post subject: MQCB giving enviornment error... Reply with quote

Apprentice

Joined: 17 Apr 2013
Posts: 28

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.

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

Thanks in advance
Back to top
View user's profile Send private message
mandy13
PostPosted: Wed Apr 17, 2013 1:55 am    Post subject: MQCB giving enviornment error... Reply with quote

Apprentice

Joined: 17 Apr 2013
Posts: 28

Hi since the above was my first post i could not post links.

Link for the description of error code 2012 is given below.
http://publib.boulder.ibm.com/infocenter/wmqv7/v7r1/topic/com.ibm.mq.doc/fm12190_.htm

Thanks,
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Apr 17, 2013 3:13 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Looks like you are using the client version. Did you set up the client environment variables?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
mandy13
PostPosted: Wed Apr 17, 2013 3:54 am    Post subject: Reply with quote

Apprentice

Joined: 17 Apr 2013
Posts: 28

Hi fjb_saper,

>>Looks like you are using the client version.
May I know how could i identify which type (client/server) of version i'm using.

>>Did you set up the client environment variables
what client environment variables i need to set to make this program run.

Thanks for your response.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Apr 17, 2013 4:52 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

mandy13 wrote:
May I know how could i identify which type (client/server) of version i'm using.


Look to see which librairies you're linking when you compile the amqscbf0.c sample. Are you linking in the client libs or the server libs?

(Hint: Have you looked in the product InfoCenter for information on compiling and linking WMQ applications)

mandy13 wrote:
what client environment variables i need to set to make this program run.


The ones described in the product InfoCenter where it talks about client connections, containing values relevant for your site & your queue manager.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mvic
PostPosted: Wed Apr 17, 2013 2:16 pm    Post subject: Re: MQCB giving enviornment error... Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

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

I'm using AIX6.1.

Is your program linked with libmqic? Try linking with libmqic_r. The _r libs are threaded, so ensure every other part of your program is also threaded and use xlc_r as per http://pic.dhe.ibm.com/infocenter/wmqv7/v7r5/topic/com.ibm.mq.doc/fg16150_.htm
Back to top
View user's profile Send private message
mandy13
PostPosted: Wed Apr 17, 2013 7:13 pm    Post subject: Reply with quote

Apprentice

Joined: 17 Apr 2013
Posts: 28

Linking with libmqic_r was the catch.. The program is working now...

Thanks guys for the quick help.. appreciate it..
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » MQCB giving enviornment error...
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.