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 » Mainframe, CICS, TXSeries » Batch job need to connect MQ

Post new topic  Reply to topic
 Batch job need to connect MQ « View previous topic :: View next topic » 
Author Message
mqknow
PostPosted: Tue Dec 08, 2009 11:43 pm    Post subject: Batch job need to connect MQ Reply with quote

Newbie

Joined: 09 Mar 2009
Posts: 8

Hi,

As I want to connect one of my batch job to MQ and need to put message on queue in MVS environment.

So, do we need put following command in my batch job program.

1. MQCONN
2. MQPUT

I know, how to connect MQ with CICS and how we can put message from online program.

Is there any difference while putting message on MQ from batch program and online program. (I think, MQ Connection command should be different to connect perticular MQ manager).

Would you please suggest on it

Thanks & Regards.
MQ-CICS
Back to top
View user's profile Send private message
Mr Butcher
PostPosted: Wed Dec 09, 2009 12:12 am    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

the MQCONN can be omitted in CICS as CICS is already connected to MQSeries. Check the notes on the MQCONN in the APR manual. For Batch, you need the MQCONN. You may pass the QMGR in the "PARM=" statement, or SYSIN, orconfiguration file, or or ... however you like your application program to pick up these informations.


the remaining MQ stuff is just "normal" MQ programming, no matter if you are in CICS or Batch.

MQCONN
MQOPEN
MQPUT (one or x messages)
MQCLOSE
MQDISC

if you only need to put 1 message you should consider to use MQPUT1 instead of MQOPEN - MQPUT - MQCLOSE. Also consider unit of work stuff (syncpoint handling / commit .....) wich is different from CICS (e.g. no EXEC CICS SYNCPOINT in batch). Be aware, that - if you update other ressources too (like DB2), MQ in Batch will not work as a ressource coordinator (like CICS does for transactions). in that case check for RRS

The APR and APG manuals are your friends.
_________________
Regards, Butcher
Back to top
View user's profile Send private message
mqknow
PostPosted: Wed Dec 09, 2009 1:23 am    Post subject: Reply with quote

Newbie

Joined: 09 Mar 2009
Posts: 8

Thank Butcher for your reply,

Would you please send link of APR and other manuals or JCL with QMGR in SYSIN...

It will help me to make connection between MQ and Batch.

Regards,
MQ-CICS
Back to top
View user's profile Send private message
Mr Butcher
PostPosted: Wed Dec 09, 2009 2:41 am    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

see the "library" link on top of the page? there is also information canter and pdf documentation on ibms mqseries home page. you should be able to find it yourself. because you asked for the manuals showes me, that you did no investigation on your own before asking here. but you should do. next time go for the manuals first, then ask what is nto clear. but do not let others read the manuals for you.
_________________
Regards, Butcher
Back to top
View user's profile Send private message
bruce2359
PostPosted: Wed Dec 09, 2009 7:29 am    Post subject: Reply with quote

Poobah

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

The JCL for compiling and binding an MQ app for batch execution is clearly outlined in the APG. Read "Building your application on z/OS" section of the APG.
_________________
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
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Mainframe, CICS, TXSeries » Batch job need to connect MQ
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.