Author |
Message
|
tomn |
Posted: Thu Mar 25, 2010 2:45 pm Post subject: Trigger message in an IMS BMP |
|
|
Newbie
Joined: 25 Mar 2010 Posts: 6
|
We currently have an MQ queue set up to trigger an IMS transaction through the IMS trigger monitor. The application is able to get the application queue name by doing an IMS call which populates the 'MQTMC' structure.
We are in the process of converting this to a BMP which is submitted by JCL through the batch trigger monitor. Am I still able to determine the application queue name and queue manager name somehow ? Is it passed to me by the trigger monitor. |
|
Back to top |
|
 |
bruce2359 |
Posted: Thu Mar 25, 2010 2:53 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Moved to Mainframe and CICS. _________________ 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 |
|
 |
bruce2359 |
Posted: Thu Mar 25, 2010 2:57 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
And, yes. The format and content of the trigger message created by the arrival of a message in a triggered queue) remains exactly the same. _________________ 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 |
|
 |
tomn |
Posted: Fri Mar 26, 2010 6:09 am Post subject: Trigger message in an IMS BMP |
|
|
Newbie
Joined: 25 Mar 2010 Posts: 6
|
But how do I receive it in my application program ? Do I have to do an IMS call like I do in my IMS transaction or is it passed as a 'parm' in the JCL ? |
|
Back to top |
|
 |
bruce2359 |
Posted: Fri Mar 26, 2010 6:14 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
|
Back to top |
|
 |
tomn |
Posted: Fri Mar 26, 2010 6:56 am Post subject: Trigger message in an IMS BMP |
|
|
Newbie
Joined: 25 Mar 2010 Posts: 6
|
Thanks for the help.
I had a look at this link and I believe what it describes is my current situation. We are triggering an IMS transaction through the IMS trigger monitor (CSQQTRMN) and getting the trigger data info by do a GU to the IOPCB. That process is working fine.
However, I want to convert this to a process whereby the application is a BMP which is initiated by JCL submitted through the batch trigger monitor.
So, my question is how do I get at the same info in the BMP ? Is it also done with a GU to the IOPCB ? Or is it passed in someother way ? |
|
Back to top |
|
 |
tomn |
Posted: Fri Mar 26, 2010 8:20 am Post subject: Trigger message in an IMS BMP |
|
|
Newbie
Joined: 25 Mar 2010 Posts: 6
|
I've done some further investigation and it looks like you can place a '!' in the JCL to be submitted and the batch trigger monitor program (we are using the sample MVS batch trigger monitor - Supportpac MA12) will replace the '!' with the name of the application queue which caused the trigger message.
Here's the comment from that program:
* Any JCL cards may contain a single
* exclamation mark (!), which will be replaced by the
* name of the queue causing the trigger message (MQTM-QNAME).
*
So, I think that is the answer I am looking for. |
|
Back to top |
|
 |
tomn |
Posted: Mon Apr 05, 2010 8:43 am Post subject: Trigger message in an IMS BMP |
|
|
Newbie
Joined: 25 Mar 2010 Posts: 6
|
Just wanted to further clarify my previous post.
Although the comments in the program indiate that a '!' will be replaced by
the name of the queue causing the trigger message, it is actually replaced by a dataset name which is in the 'trigdata' of the of the queue causing the triggering.
If I wanted to get the queue name into my application program, it would require me to make modifications to the batch trigger monitor program to pass it along. |
|
Back to top |
|
 |
Mr Butcher |
Posted: Tue Apr 06, 2010 12:46 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
I use MA12 too, and in my case the exclamation mark (in fact i have to specify an "Ü") is replaced with the queue name causing the trigger, not with the trigdata. So works as designed.
However, MA12 does not pass anything to the application program started, it jsut submits jcl and can do modifications in that jcl
IMHO TRIGDATA is used internally by MA12
Quote: |
* this is for logging trigge event without job
01 L01-TRIGGERDATA PIC X(5).
88 DO-NOT-LOG-JCL VALUE IS 'NOJCL'.
88 DO-NOT-LOG-ANYTHING VALUE IS 'NOLOG'.
88 DO-NORMAL-LOGGING VALUE IS ' '. |
_________________ Regards, Butcher |
|
Back to top |
|
 |
tomn |
Posted: Tue Apr 06, 2010 7:25 am Post subject: Trigger message in an IMS BMP |
|
|
Newbie
Joined: 25 Mar 2010 Posts: 6
|
MA12 does work as Mr. Butcher indicates.
I have now determined that when MA12 was implemented here back in 2000, we made modifications to it so it works differently here. |
|
Back to top |
|
 |
|