|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
start chl with VBscript |
« View previous topic :: View next topic » |
Author |
Message
|
bamboozled_by_MQ |
Posted: Fri Apr 02, 2004 7:08 am Post subject: start chl with VBscript |
|
|
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 |
|
 |
gunter |
Posted: Fri Apr 02, 2004 8:56 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|