Author |
Message
|
mqhans |
Posted: Fri Apr 19, 2002 2:14 am Post subject: |
|
|
Newbie
Joined: 18 Apr 2002 Posts: 8
|
hello
I want to put a message from a client to a server using the amqsputb programm.
it only works if I set the MQSERVER variable. if I try to use the AMQCLCHL.TAB file there is a reason code 2059.
is there another possibility to use the AMQCLCHL.TAB file in VB?
please let me know ... |
|
Back to top |
|
 |
mrlinux |
Posted: Fri Apr 19, 2002 3:42 am Post subject: |
|
|
 Grand Master
Joined: 14 Feb 2002 Posts: 1261 Location: Detroit,MI USA
|
What enviroment variables are you setting excluding the MQSERVER ???
_________________ Jeff
IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries |
|
Back to top |
|
 |
mqhans |
Posted: Fri Apr 19, 2002 4:17 am Post subject: |
|
|
Newbie
Joined: 18 Apr 2002 Posts: 8
|
if I want to use the AMQCLCHL.TAB file I set the environment variables MQCHLLIB and MQCHLTAB as they are described in the manual. with the sample programm amqsputc it works fine but not with the amqsputb.
|
|
Back to top |
|
 |
mrlinux |
Posted: Fri Apr 19, 2002 4:33 am Post subject: |
|
|
 Grand Master
Joined: 14 Feb 2002 Posts: 1261 Location: Detroit,MI USA
|
I was just checking to make sure you have setup both, sometimes I see where they set up one but not the other. I cannot find the compiled version of the
amqsputb program just the source, I suggest you try an strmqtrc and check the
trace output.
_________________ Jeff
IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries |
|
Back to top |
|
 |
mqhans |
Posted: Fri Apr 19, 2002 5:06 am Post subject: |
|
|
Newbie
Joined: 18 Apr 2002 Posts: 8
|
you have to compile it first. it is necessary that you set mqtype=2 for the client in the VB compiler, to ensure the correct automatic selection of the client dll.
I have new infos:
the amqsputb sample program worked with the AMQCLCHL.TAB file but only after I inserted the name of the Qmgr in MQCONN command.
it seems that the TAB file will only be read if there is Qmgrname in the MQCONN command.
regards, hans |
|
Back to top |
|
 |
mrlinux |
Posted: Fri Apr 19, 2002 5:13 am Post subject: |
|
|
 Grand Master
Joined: 14 Feb 2002 Posts: 1261 Location: Detroit,MI USA
|
After Checking out the code a little, The program tries to connect to the default queue manager, I didnt see any way to specify QMGR, so if you create
a clntconn channel specify QMNAME(' ') and this will allow you to connect
to the queue manager and open queues (I tried this and it worked).
Iam not a vb programmer so if there is a way specify QMGR on command line or
what code needs to be modified I dont know.
_________________ Jeff
IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries |
|
Back to top |
|
 |
|