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 » General IBM MQ Support » MQSeries programming doubt?

Post new topic  Reply to topic
 MQSeries programming doubt? « View previous topic :: View next topic » 
Author Message
vinodh_niit
PostPosted: Mon Oct 07, 2002 2:14 am    Post subject: MQSeries programming doubt? Reply with quote

Apprentice

Joined: 22 May 2002
Posts: 36
Location: chennai

Hi All

One of my friend is working on MQSeries application programming using COBOL. The requirement was to write separate routines for CONNECT, OPEN, PUT/GET, CLOSE. DISCONNECT call. These routines can be separate COBOL program. A main cobol program can call the routines if needed or a tool coolgen which generates code from a design will call these routines.
The concern is ..if we write separate programs for ..say..connect call and close it..and then call it in the main...will the Connection handle obtained in the connect be lost as we close the program i.e the subroutine. How long the connection handle be active?? Is this possible.
Any alternate idea is welcome.

Thanks in advance.

Rgds
Vinodh
_________________
vinodh
ssg-mq ream
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
dgolding
PostPosted: Mon Oct 07, 2002 5:45 am    Post subject: Reply with quote

Yatiri

Joined: 16 May 2001
Posts: 668
Location: Switzerland

Well, it's about 25 years since I wrote a COBOL program but....

You can pass the connection handle to your calling subroutine, so long as you are all running in the same process. You don't mention whcih platform you're on, I assume W2k/NT/Unix - I'm not too sure on OS/390 about the subroutine calling mechanism...

What you CAN'T do on Unix (and I think NT/W2K) is pass the connection and/or file handle to a completely seperate process - this won't work....

HTH
Back to top
View user's profile Send private message Visit poster's website
bower5932
PostPosted: Tue Oct 08, 2002 10:40 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

There have actually been some changes in this area with the MQ 5.3 product. You basically have the ability to share connection handles across threads in situations where you couldn't before. You can check out the MQCNO structure in the Application Programming Reference for details.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » MQSeries programming doubt?
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.