Author |
Message
|
JScherbel |
Posted: Thu Jan 26, 2006 10:37 am Post subject: amqsbcg 2012 error |
|
|
Newbie
Joined: 04 Jan 2006 Posts: 4
|
I'm trying to run this binary and getting a 2012 error. I'm running it as my own user (since I don't have access to mqm) but I'd expect a 2035 error if it were a perms issue.
If I'm running this on the same Linux box as the server, what should my env var be for MQSERVER? I'm doing:
export MQSERVER='SYSTEM.DEF.SVRCONN'/TCP/'127.0.0.1'
Help!!! |
|
Back to top |
|
 |
vennela |
Posted: Thu Jan 26, 2006 10:52 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
amqsbcg doesn't need any MQ server variable |
|
Back to top |
|
 |
csmith28 |
Posted: Thu Jan 26, 2006 11:12 am Post subject: |
|
|
 Grand Master
Joined: 15 Jul 2003 Posts: 1196 Location: Arizona
|
vennela wrote: |
amqsbcg doesn't need any MQ server variable |
Nor does it nead a SVRCONN Channel/protocol/IP. You only need to set those variable is you are using amqsbcgc _________________ Yes, I am an agent of Satan but my duties are largely ceremonial. |
|
Back to top |
|
 |
wschutz |
Posted: Thu Jan 26, 2006 12:37 pm Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
There are a number of hits for 2012 here if you use the search button. They seem to either talk about problems using XA commits or bad / missing MQ and Op system files.
Since you are using the sample program, we can exclude the XA problems. Do any other samples (amqsput / get) work?
Try a find for -name amq*, you should only have those files in /opt/mqm /usr/shr/locale and /var/mqm directories. Links in /usr/lib and /usr/bin should be symlinks. _________________ -wayne
Last edited by wschutz on Thu Jan 26, 2006 12:52 pm; edited 1 time in total |
|
Back to top |
|
 |
mvic |
Posted: Thu Jan 26, 2006 12:43 pm Post subject: Re: amqsbcg 2012 error |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
JScherbel wrote: |
I'm trying to run this binary and getting a 2012 error |
Am not sure why the 2012 (MQRC_ENVIRONMENT_ERROR). Kindly post the output you see on the console - preferably everything including the command you type and the stdout/stderr from the app.
Also what version of MQ, what version/distribution of Linux? Could be an NPTL/LinuxThreads problem - in which case you'll need to look at the setting for LD_ASSUME_KERNEL etc.
Be sure to read carefully http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/topic/com.ibm.mq.amq1ac.doc/amq1ac0102.htm |
|
Back to top |
|
 |
|