The process below is executed from a VBS script in DOS.
The Code:
dim MQSess
dim qmgr
dim ITSOQueue
dim PutOptions
dim SampleMsg
Set MqSess = CreateObject("MQAX200.MqSession")
set qmgr = mqsess.accessqueuemanager(QMgr)
set samplequeue = qmgr.accessqueue(qname,16)
set samplemsg = mqsess.accessmessage()
set putoptions = mqsess.accessputmessageoptions()
samplemsg.format = MQFMT_STRING
outst = "This is a test"
samplemsg.messagedata = outst
putoptions = mqpmo_no_syncpoint + MQFMT_STRING
samplequeue.put samplemsg ', MQFMT_STRING
The message gets put on the queue fine, but when I have the MQA's look at the data format of the message, it is set to nothing. I cannot figure out how to set the message format to string.
Any help!?!?!
Maybe if I used the numerical equivilant to MQFMT_STRING instead of the key word (which I believe is blank under normal processing)
ASP, VB, VBS, Cold Fusion, SQL, DTS, T-SQL, PL-SQL, IBM-MQ, Crystal Reports, Crystal Enterprise
The Code:
dim MQSess
dim qmgr
dim ITSOQueue
dim PutOptions
dim SampleMsg
Set MqSess = CreateObject("MQAX200.MqSession")
set qmgr = mqsess.accessqueuemanager(QMgr)
set samplequeue = qmgr.accessqueue(qname,16)
set samplemsg = mqsess.accessmessage()
set putoptions = mqsess.accessputmessageoptions()
samplemsg.format = MQFMT_STRING
outst = "This is a test"
samplemsg.messagedata = outst
putoptions = mqpmo_no_syncpoint + MQFMT_STRING
samplequeue.put samplemsg ', MQFMT_STRING
The message gets put on the queue fine, but when I have the MQA's look at the data format of the message, it is set to nothing. I cannot figure out how to set the message format to string.
Any help!?!?!
Maybe if I used the numerical equivilant to MQFMT_STRING instead of the key word (which I believe is blank under normal processing)
ASP, VB, VBS, Cold Fusion, SQL, DTS, T-SQL, PL-SQL, IBM-MQ, Crystal Reports, Crystal Enterprise