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 » Trigger message in an IMS BMP

Post new topic  Reply to topic
 Trigger message in an IMS BMP « View previous topic :: View next topic » 
Author Message
tomn
PostPosted: Thu Mar 25, 2010 2:45 pm    Post subject: Trigger message in an IMS BMP Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Thu Mar 25, 2010 2:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Thu Mar 25, 2010 2:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
tomn
PostPosted: Fri Mar 26, 2010 6:09 am    Post subject: Trigger message in an IMS BMP Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Fri Mar 26, 2010 6:14 am    Post subject: Reply with quote

Poobah

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

Take a look at http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqsat.doc/csq826k.htm
_________________
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
tomn
PostPosted: Fri Mar 26, 2010 6:56 am    Post subject: Trigger message in an IMS BMP Reply with quote

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
View user's profile Send private message
tomn
PostPosted: Fri Mar 26, 2010 8:20 am    Post subject: Trigger message in an IMS BMP Reply with quote

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
View user's profile Send private message
tomn
PostPosted: Mon Apr 05, 2010 8:43 am    Post subject: Trigger message in an IMS BMP Reply with quote

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
View user's profile Send private message
Mr Butcher
PostPosted: Tue Apr 06, 2010 12:46 am    Post subject: Reply with quote

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
View user's profile Send private message
tomn
PostPosted: Tue Apr 06, 2010 7:25 am    Post subject: Trigger message in an IMS BMP Reply with quote

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
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 » Trigger message in an IMS BMP
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.