|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Batch job need to connect MQ |
« View previous topic :: View next topic » |
Author |
Message
|
mqknow |
Posted: Tue Dec 08, 2009 11:43 pm Post subject: Batch job need to connect MQ |
|
|
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 |
|
 |
Mr Butcher |
Posted: Wed Dec 09, 2009 12:12 am Post subject: |
|
|
 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 |
|
 |
mqknow |
Posted: Wed Dec 09, 2009 1:23 am Post subject: |
|
|
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 |
|
 |
Mr Butcher |
Posted: Wed Dec 09, 2009 2:41 am Post subject: |
|
|
 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 |
|
 |
bruce2359 |
Posted: Wed Dec 09, 2009 7:29 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|