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 » COBOL MQCONNX sample

Post new topic  Reply to topic
 COBOL MQCONNX sample « View previous topic :: View next topic » 
Author Message
RogerLacroix
PostPosted: Fri Jul 10, 2015 11:11 am    Post subject: COBOL MQCONNX sample Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3252
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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » COBOL MQCONNX sample
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.