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 Installation/Configuration Support » AS400 program direct to Windows NT MQ server

Post new topic  Reply to topic
 AS400 program direct to Windows NT MQ server « View previous topic :: View next topic » 
Author Message
fcho
PostPosted: Wed Oct 16, 2002 1:58 am    Post subject: AS400 program direct to Windows NT MQ server Reply with quote

Apprentice

Joined: 29 May 2002
Posts: 28

Hi,
I've written some AS400 COBOL programs that communicate to QMGR1 in AS400 using MQI, now due to some reason, the QMGR1 will be reside in a new Windows NT box, so is that any where my AS400 programs can directly communicate to QMGR1 in NT?
As I know for AIX & Windows, I can just change the MQSERVER env. variable to point to different ip & port only, but there is no such thing in AS400, so what is the best way to do that?
_________________
Regards,
fcho
Back to top
View user's profile Send private message
mgrabinski
PostPosted: Wed Oct 16, 2002 5:22 am    Post subject: Reply with quote

Master

Joined: 16 Oct 2001
Posts: 246
Location: Katowice, Poland

The communication AS/400 to Windows is exactly the same as AS to AS.
Just set up appropriate channels, possibly change queue manager names in remote queue definitions and it will work. Anyway, if you have any specific problem, update us on it
_________________
Marcin Grabinski <><
Back to top
View user's profile Send private message
fcho
PostPosted: Wed Oct 16, 2002 3:32 pm    Post subject: Reply with quote

Apprentice

Joined: 29 May 2002
Posts: 28

Hi,
Thanks. That mean I just need to configure 1 channel with connection name = NT box ip & port? If yes what should I set inorder to make my programs using this channel out?
_________________
Regards,
fcho
Back to top
View user's profile Send private message
mgrabinski
PostPosted: Wed Oct 16, 2002 10:03 pm    Post subject: Reply with quote

Master

Joined: 16 Oct 2001
Posts: 246
Location: Katowice, Poland

Hi

Your configuration should look like this:

Code:

AS/400:
DEFINE QREMOTE(TO_WIN) +
            RNAME(FROM_AS) +
            RQMNAME(WIN_QMGR) +
            XMITQ(WIN_QMGR)

DEFINE QLOCAL(WIN_QMGR) +
            USAGE(XMITQ)

DEFINE CHANNEL(AS_TO_WIN)
            CHLTYPE(SDR) +
            TRPTYPE(TCP) +
            CONNAME(WIN_IP) +
            XMITQ(WIN_QMGR)

WIN:
DEFINE QLOCAL(FROM_AS)

DEFINE CHANNEL(AS_TO_WIN) +
           CHLTYPE(RCVR) +
           TRPTYPE(TCP)




This configuration will enable you to send messages from AS to WIN. Start a listener on Win, start the channel from AS and put messages to TO_WIN queue. To have the communication the other way around, just mirror the definitions (rememebr to change names)

Best regards,
_________________
Marcin Grabinski <><
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 » IBM MQ Installation/Configuration Support » AS400 program direct to Windows NT MQ server
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.