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 » Client channel table in VB

Post new topic  Reply to topic
 Client channel table in VB « View previous topic :: View next topic » 
Author Message
mqhans
PostPosted: Fri Apr 19, 2002 2:14 am    Post subject: Reply with quote

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
View user's profile Send private message
mrlinux
PostPosted: Fri Apr 19, 2002 3:42 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
mqhans
PostPosted: Fri Apr 19, 2002 4:17 am    Post subject: Reply with quote

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
View user's profile Send private message
mrlinux
PostPosted: Fri Apr 19, 2002 4:33 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
mqhans
PostPosted: Fri Apr 19, 2002 5:06 am    Post subject: Reply with quote

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
View user's profile Send private message
mrlinux
PostPosted: Fri Apr 19, 2002 5:13 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Client channel table in VB
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.