View previous topic :: View next topic
|
Author |
Message |
rss0213
New User
Joined: 20 Jan 2010 Posts: 26 Location: Alabama
|
|
|
|
Hi. I want to build an MQ application that can be triggered from data written to multiple queues. I.e. each initiation queue that data has written to it will start the same program. In order for my application to know which queue to get the message from, it needs to know which queue's data triggered its execution. So it needs to know the transaction ID that started it (I think, unless there's a better approach). I've tried searching for an easy way to do this, but I can't find one. Is this even possible? |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Check the value in EIBTRNID. Note that this is the transaction-id defined to the initial (root) program, also known as the PCT entry.
If you need to know how the transaction had been invoked, review the ASSIGN STARTCODE API.
EIBTRMID (not to be confused with EIBTRNID) will be non LOW-VALUES if the transaction was attached to a terminal. |
|
Back to top |
|
|
Binop B
Active User
Joined: 18 Jun 2009 Posts: 407 Location: Nashville, TN
|
|
|
|
Hi Scott,
Am not very sure about whether this is the best approach ...
But I would suggest you have a new transaction for every new MQ. For all the new transactions it could all point to the same program. In the program, based on the EIBTRNID as Bill suggested, you should be able to tell which MQ to read. |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
What you could simply do is have an indicator written to each message like Q1 , Q2,Q3
so be it same or different Trid invoking the program you will be able to figure out from which queue it came from
|
|
Back to top |
|
|
|