|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
COBOL MQCONNX sample |
« View previous topic :: View next topic » |
Author |
Message
|
RogerLacroix |
Posted: Fri Jul 10, 2015 11:11 am Post subject: COBOL MQCONNX sample |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
All,
Does anyone have a simple but working sample COBOL program that uses MQCONNX ? I am trying to help out a customer who is using COBOL on Linux. It has been a long time since I did any COBOL work. When they run the program, they are getting weird errors:
Code: |
#./tpmq0100
20150710 13543705 tpmq0100 started
20150710 13543705 tpmq0100 mqconnect-to-qm-rtn ws-qm-name-connect=MQA1 mqcd-channelname=MQA1.CHL
mqconnx error ccode:000000033554432+ rcode:000001527250944+ |
I'm guessing that they have not correctly setup the MQCD but I cannot find a working sample to send them as a template. Google has not been any help and the IBM supplied samples only use MQCONN.
Also, I believe the COBOL program on Linux is connecting to a queue manager on another Linux server. If I were to guess, I think they forgot to set address of the MQCD in the MQCNO-CLIENTCONNPTR field.
In C, it would be:
Code: |
Connect_options.ClientConnPtr = &ClientConn; |
But I have no idea how to do that in COBOL.
The rest, I think, should look like:
Code: |
MOVE 0 to MQCNO-CLIENTCONNOFFSET.
MOVE MQCNO-VERSION-2 to MQCNO-VERSION. |
So, if anyone has a simple COBOL sample that uses MQCONNX, I would appreciate it if you could post it.
Regards,
Roger Lacroix
Capitalware Inc. _________________ Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter |
|
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
|
|
|
|