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 » HELP VB API Support NT vs WIN 2000

Post new topic  Reply to topic
 HELP VB API Support NT vs WIN 2000 « View previous topic :: View next topic » 
Author Message
marksinnott
PostPosted: Thu Apr 14, 2005 9:43 am    Post subject: HELP VB API Support NT vs WIN 2000 Reply with quote

Novice

Joined: 06 Oct 2003
Posts: 21

Hi I have a vb6 program that connects to a remote mq manager on a different server. The way the VB program gets the manager etc is from the environmental variable MQSERVER=CLIENT.qmgername/tcp/servername(port) which i have set in NT.

This all work perfectly running on NT.

When I migrate my VB prog over to windows2000 and set the above environmental variable as above I get a 2059.

It looks like its not picking up the environmental variable.

Any ideas / help would be much appreciated

Mark
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Thu Apr 14, 2005 10:07 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

Did you bounce the machine after setting the variable?

If yes, what do you get when you type amqscnxc from the command line?
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
marksinnott
PostPosted: Thu Apr 14, 2005 10:19 am    Post subject: Reply with quote

Novice

Joined: 06 Oct 2003
Posts: 21

Hi yes i booted the machine

Sample AMQSCNXC start
Connecting to the default queue manager
with no client connection information specified.
Connection established to queue manager MUAXBR03
Sample AMQSCNXC end

When I run the vb program i get
ruin time error 3200
MQAX200.dllMqsessionAccessqueuemanager completion code 2 reasoncode 2059reasonname MQRC_Q_MGR_NOT_AVAILABLE

We have set the mqaerever to MQSERVER=CLIENT.MUAXBRO3/TCP/Servername(portnumber)
Any help will be appreciated

Tried the excel sample and also get the same error
Back to top
View user's profile Send private message
bower5932
PostPosted: Thu Apr 14, 2005 10:20 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

Since the excel sample is also failing, I'd suggest that you try this with the amqsputC sample and the environment variable. Also, is your listener running?
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
marksinnott
PostPosted: Thu Apr 14, 2005 10:26 am    Post subject: Reply with quote

Novice

Joined: 06 Oct 2003
Posts: 21

Set MQSess = New MQSession
Set QMgr = MQSess.AccessQueueManager("")

The above is the start of the vb prog and i get the error on the 2nd line

If i go over to the NT machine it works fine
Back to top
View user's profile Send private message
marksinnott
PostPosted: Thu Apr 14, 2005 10:28 am    Post subject: Reply with quote

Novice

Joined: 06 Oct 2003
Posts: 21

Sample AMQSPUT0 start
target queue is NUBR.BPS.ISIS
Sample AMQSPUT0 end


using the sample u mention

Thanks
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Thu Apr 14, 2005 11:02 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

marksinnott wrote:
Sample AMQSCNXC start
Connecting to the default queue manager
with no client connection information specified.
Connection established to queue manager MUAXBR03
Sample AMQSCNXC end


This proves the MQSERVER variable is recognized. Even though you did not specify any paramters to tell it to go to MUAXBR03, it made the connection. The only way it could have done this is if MQSERVER was recognized. (Or of you had a channel table set up, the AMQCHLLIB and AMQCHLTAB variables set, and no MQSERVER).
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
marksinnott
PostPosted: Wed Apr 20, 2005 3:12 am    Post subject: MQSERVER Reply with quote

Novice

Joined: 06 Oct 2003
Posts: 21

I have just set the environment variable MQSERVER to tell vb where to connect to. It work on NT client but not windows 2000 client.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Apr 20, 2005 12:23 pm    Post subject: Reply with quote

Grand High Poobah

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

marksinnott wrote:
Hi yes i booted the machine

Sample AMQSCNXC start
Connecting to the default queue manager
with no client connection information specified.
Connection established to queue manager MUAXBR03
Sample AMQSCNXC end

When I run the vb program i get
ruin time error 3200
MQAX200.dllMqsessionAccessqueuemanager completion code 2 reasoncode 2059reasonname MQRC_Q_MGR_NOT_AVAILABLE

We have set the mqaerever to MQSERVER=CLIENT.MUAXBRO3/TCP/Servername(portnumber)
Any help will be appreciated

Tried the excel sample and also get the same error


Don't know if it's a typo but you better check your names... looks to me like there is confusion between a 0 (zero) and O (Oscar).
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 » HELP VB API Support NT vs WIN 2000
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.