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 » COBOL and Remote Queues

Post new topic  Reply to topic
 COBOL and Remote Queues « View previous topic :: View next topic » 
Author Message
bjr149
PostPosted: Tue Aug 03, 2010 10:52 am    Post subject: COBOL and Remote Queues Reply with quote

Novice

Joined: 03 Mar 2010
Posts: 22

I have a QM hosted on a different server than I am running the AS 400. So I just configure a remote queue on the 400 and just have the COBOL code just use that remote queue?

What I'm saying is that for COBOL you do not reference the server name when establishing the connection but you just setup the queue on the server the cobol is running as a remote queue not a local queue.

Correct?
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Aug 03, 2010 11:04 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

You can not establish a client connection from AS400.

You can not issue MQGET against a QREMOTE.

Other than that, it's exactly like talking to a local queue.
Back to top
View user's profile Send private message
bjr149
PostPosted: Tue Aug 03, 2010 11:15 am    Post subject: Reply with quote

Novice

Joined: 03 Mar 2010
Posts: 22

"You can not issue MQGET against a QREMOTE. "

What is the point then if you can't have 2 way communication. It seems it would only be usefull to put the data to another system to process. Is this only on the 400 remote queues?
Back to top
View user's profile Send private message
bruce2359
PostPosted: Tue Aug 03, 2010 11:18 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

Quote:
What I'm saying is that for COBOL you do not reference the server name when establishing the connection but you just setup the queue on the server the cobol is running as a remote queue not a local queue.

Since the as/400 cannot be a client, you need to have a sender-reciever (or other) channel to connect the qmgr where your app is executing - to the qmgr that hosts the destination queue.

This is referred to as distributed queuing, and is well-documented in the WMQ manuals.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Aug 03, 2010 11:37 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Your QLOCAL is their QREMOTE. Your QREMOTE is their QLOCAL.

You issue MQGET against your qlocal and MQPUT against to your QREMOTE.

This is MQ 101.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Aug 03, 2010 8:40 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

mqjeff wrote:
You can not establish a client connection from AS400.


Jeff, should that be tempered with
You cannot establish a client connection from AS400 in any language other than Java? Or would the qmgr (if running on AS400) need like on zOS a client attachment facility?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Wed Aug 04, 2010 1:04 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

fjb_saper wrote:
mqjeff wrote:
You can not establish a client connection from AS400.


Jeff, should that be tempered with
You cannot establish a client connection from AS400 in any language other than Java? Or would the qmgr (if running on AS400) need like on zOS a client attachment facility?


There is no CAF for iSeries. CAF would only allow for other apps to establish a client connection INTO the AS400.

Yes, java is an exception here. But we're talking COBOL.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Wed Aug 04, 2010 5:38 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

Both WMQ on iSeries and WMQ on z/OS are server-only. Neither can be a client.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Aug 04, 2010 6:10 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

bruce2359 wrote:
Both WMQ on iSeries and WMQ on z/OS are server-only. Neither can be a client.


Except from Java.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » COBOL and Remote Queues
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.