Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

MQ Trigger

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Java & MQSeries
View previous topic :: :: View next topic  
Author Message
Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1529
Location: Andromeda Galaxy

PostPosted: Fri Apr 13, 2012 8:42 pm    Post subject: MQ Trigger
Reply with quote

Hi all,

I have a requirement where I need to trigger a CICS program when a message is placed in MQ just to add on to this requirement additional conditions is that this transaction should be active during a particular batch cycle.

So what I do is I did an enable of the transaction while start of the batch cycle and disable it while end of the batch cycle.

Things are fine until now.

One fine day there where some messages being placed before batch cycle started and the transaction would have been disabled that point of time . Say after few hours the batch cycle runs and enables the transaction which would execute the CICS program.

But after the transaction is being enabled the messages are not being picked and processed or in better words the transactions and the cics program are in enabled mode but the program X is not triggered even if I place a fresh message in the MQ.

But a strange thing is what I noticed

I initially had the trigger type as FIRST and trigger DEPTH as say 100 and once I altered the trigger type to EVERY the transactions are getting processed

Like wise I had initially made the queue as trigger type EVERY and disabled the transaction and placed few messages and enabled the transaction the program did not execute unless I changed the Trigger type to First .

Can someone guide me so that to make sure the trigger happens until the queue is empty very after enabling the transaction?
Back to top
View user's profile Send private message

Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1529
Location: Andromeda Galaxy

PostPosted: Tue Apr 17, 2012 11:52 pm    Post subject:
Reply with quote

I made use of EXCI interface and made the program x to run in start of batch first time after enabling the transaction and all subsequent triggers getting invoked fine
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Apr 18, 2012 12:35 am    Post subject: Reply to: MQ Trigger
Reply with quote

Good to hear it is working - thank you for letting us know icon_smile.gif

d
Back to top
View user's profile Send private message
Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1529
Location: Andromeda Galaxy

PostPosted: Wed Apr 18, 2012 1:09 am    Post subject:
Reply with quote

I am not sure if MQ experts have encountered this kinda scenario if not

I feel the MQ triggers should not go inactive once the transaction is disabled and enabled but should be triggered untill MQ vessel is empty

I want some inputs / clarification for the same
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Apr 18, 2012 1:42 am    Post subject:
Reply with quote

Hello,

Does the documentation not mention the effect of a diable and subsequent enable? I suspect that it is working as planned, but i'm not knowledgable enough to say more than "i suspect". . . icon_smile.gif

While waiting for someone who might have had a similar experience to reply, you could open an issue with IBM and ask what alternatives might be available.
Back to top
View user's profile Send private message
Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1529
Location: Andromeda Galaxy

PostPosted: Wed Apr 18, 2012 10:17 am    Post subject:
Reply with quote

Sure Dick thanks
Back to top
View user's profile Send private message
Jose Mateo

Active User


Joined: 29 Oct 2010
Posts: 110
Location: Puerto Rico

PostPosted: Thu Apr 19, 2012 2:35 am    Post subject:
Reply with quote

Good afternoon!

Your real problem is the transaction been set to disable. Find out why the transaction is been set to disable because the MQ manager gets a record in the queue and he trys to trigger the CICS transaction which is disable then there's no CICS process to process the records in the queue.
Back to top
View user's profile Send private message
Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1529
Location: Andromeda Galaxy

PostPosted: Thu Apr 19, 2012 12:09 pm    Post subject:
Reply with quote

Thanks Jose

The Issue here is I know the CICS transaction which is getting triggered should be made available during a particular batch cycle so this transaction can be made available only during that cycle.

Say I enable the transaction in the morning at 8am and disable at 2 pm

So the messages being placed after 2 pm it would try to execute the transaction but it wont and the next day these messages should be processed once in morning 8am it is being enabled

As the messages are there in queue , my question is after the transaction is being enabled why doesnt it process the messages ?
Back to top
View user's profile Send private message
Jose Mateo

Active User


Joined: 29 Oct 2010
Posts: 110
Location: Puerto Rico

PostPosted: Thu Apr 19, 2012 9:00 pm    Post subject:
Reply with quote

Good day, Pandora-box!

Your queue is not been process because your trigger is temporary disable until you do a stop and start on the queue which should restart the trigger. Do you have access to your MQ monitor and do you know how to use the MQ monitor? If 'yes' to all, then go into the MQ monitor and look at settings of your queue. Make sure your 'trigger enabled' is set to 'Y' and 'Y' to 'allow trigger to restart'. Then do a stop and start on the queue. If your answer to the previous questions was 'no' then ask your MQ administrator to restart the trigger for your queue.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Java & MQSeries All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to track incoming input files tha... shreya19 JCL & VSAM 6 Thu Feb 25, 2016 6:15 pm
No new posts Issue in trigger vickey_dw DB2 3 Wed Feb 10, 2016 5:41 pm
No new posts Trigger a mainframe job by mail Praveen Thenraj IBM Tools 8 Wed Jan 13, 2016 12:05 pm
No new posts Setting up a new trigger krisprems DB2 4 Thu Dec 24, 2015 10:33 pm
No new posts Can a DB2 insert trigger execution of... TS70363 DB2 6 Tue Nov 24, 2015 10:44 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us