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 » start chl with VBscript

Post new topic  Reply to topic
 start chl with VBscript « View previous topic :: View next topic » 
Author Message
bamboozled_by_MQ
PostPosted: Fri Apr 02, 2004 7:08 am    Post subject: start chl with VBscript Reply with quote

Voyager

Joined: 07 Jan 2004
Posts: 75

hello, I have a file called strchl.vbs
and I would like to start a local chl using the com. I am very close but getting this error:MQBag.MQBag.1: MQRC_PARAMETER_MISSING
the error is happening at the adminBag.execute line

Code:
Set MQSess = CreateObject("MQAX200.MQSession")
Set QMgr = MQSess.AccessQueueManager("") 'Accesses default queue manager


Set adminBag = CreateObject("MQBag.MQBag")
adminBag.Options = 1

Set responseBag  = CreateObject("MQBag.MQBag")
Set attrsBag     = CreateObject("MQBag.MQBag")
Set optsBag      = CreateObject("MQBag.MQBag")
'MQOO_OUTPUT + MQOO_FAIL_IF_QUIESCING +                   
Set requestQueue = QMgr.AccessQueue("SYSTEM.ADMIN.COMMAND.QUEUE", 16 + 8192 + 32)
'MQOO_INPUT_SHARED + MQOO_FAIL_IF_QUIESCING + MQOO_INQUIRE)
Set replyQueue   = QMgr.AccessQueue("COMMAND.RESPONSE.LOCAL", 2 + 8192 + 32)

Dim chlName
chlName = "MACH1.TO.X14"

 
  adminBag.Clear()
  responseBag.Clear()
 
adminBag.Add(chlName)
adminBag.Add(3501)
 '3501 = the MQCACH_CHANNEL_NAME selector
responseBag = adminBag.Execute(QMgr, 28, optsBag, requestQueue, replyQueue)
Back to top
View user's profile Send private message
gunter
PostPosted: Fri Apr 02, 2004 8:56 am    Post subject: Reply with quote

Partisan

Joined: 21 Jan 2004
Posts: 307
Location: Germany, Frankfurt

I'm not familar with VBS, only with MQAI.

The channelname isn't a option, it's a parameter, maybe the adminBag.Options should be 0. In MQAI I don't use the Optionbag, but I don't know how it is in VBS. [/u]
_________________
Gunter Jeschawitz
IBM Certified System Administrator - Websphere MQ, 5.3
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 » start chl with VBscript
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.