Peter
Yes - either you can customise CKTI transaction (the sample
code is provided by the IBM as part of WebSphere MQ) and plug in your own
logic to determine the user-id and issue a
EXEC CICS START TRNID(ABCD)
USERID(xxxxxxxx)
Or alternatively
CKTI starts application ABCD by default. In ABCD
transaction issues another start for actual application transaction with
appropriate user-id similar to as shown above.
My personal preference is for option-1. In option-2, ABCD
transaction has to pass the trigger message to the next transaction and in the
process it has all ready cleaned up the trigger message from initiation queue.
If for some reason, second transaction doesn't start or fails half way through,
then you would have lost one trigger message.
Apart from that both are same.
Cheers
Rao
From: Heggie, Peter
[mailto:[EMAIL PROTECTED]
Sent: 4 March 2004 2:12 AM To: [EMAIL PROTECTED] Subject: Re: MQ Triggering in CICS Is there a way to dynamically set the userid? As long as we are creating a SIL in CICS, is there a way for the SIL to specify the userid when issuing the EXEC CICS START ?
Peter Heggie -----Original
Message-----
Few more points to add: (I was quick in pressing the send button):
As a design principle the CICS program always should issue a EXEC CICS RETRIEVE - 1) as Joe mentioned, to determine whether this transaction has triggered by CKTI (or one of the equivalents) and secondly to retrieve the trigger message. Trigger message gives you the information about which queue has resulted the trigger, trigger data (that is defined on the base queue), Process name, application data and user data that was put in the PROCESS definitions etc.. Usually the program should determine the queue that it is supposed to read from this trigger message (which is more reliable) rather than hard-coding / soft-coding in the program.
Also, most of the times CKTI starts with a default user-id (or CICS userid) and hence your transaction also runs under the same user-id. So watch out for your security rules.
Cheers
Rao
From: Adiraju,
Rao John
Additional point to what Joe mentioned - yes, the default you look for is "CKTI" in Rtransid field. But check with your CICS guys as well - because it is possible one CICS region to have multiple initiators and/or different transaction codes (for various reasons).
If that's case you need to check for those codes as well (or instead).
Cheers
Rao
Adiraju
From:
DeBlassio, Joe [mailto:[EMAIL PROTECTED] John, Perform the following CICS RETRIEVE at the beginning of your program and check the RTRANSID. If it contains the value CKTI, then you know that the trigger monitor started your program. EXEC CICS
RETRIEVE
Make sure
you include copybook CMQTML in your linkage section. Good luck,
-----Original Message-----
Folks, In a CICS
program, how can I tell that the CICS program was started from a
Thanks, John Dawson Instructions for managing your mailing list subscription
are provided in This communication is confidential and may contain
privileged material. If you are not the intended recipient you must not
use, disclose, copy or retain it. If you have received it in error please
immediately notify me by return email and delete the emails. This e-mail and any files transmitted with it, are confidential to National Grid and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error, please reply to this message and let the sender know. This communication is confidential and may contain privileged material. If you are not the intended recipient you must not use, disclose, copy or retain it. If you have received it in error please immediately notify me by return email and delete the emails. Thank you. |
Title: RE: MQ Triggering in CICS
- Re: MQ Triggering in CICS Jxrgen Pedersen
- Re: MQ Triggering in CICS Ruzi R
- Re: MQ Triggering in CICS Rick Tsujimoto
- Re: MQ Triggering in CICS Jxrgen Pedersen
- Re: MQ Triggering in CICS Jan MOEYERSONS
- Re: MQ Triggering in CICS Dawson, John
- Re: MQ Triggering in CICS Dawson, John
- Re: MQ Triggering in CICS Heggie, Peter
- Re: MQ Triggering in CICS Chase, John
- Re: MQ Triggering in CICS Heggie, Peter
- Re: MQ Triggering in CICS Adiraju, Rao
- Re: MQ Triggering in CICS Heggie, Peter
- Re: MQ Triggering in CICS Jxrgen Pedersen
- Re: MQ Triggering in CICS Chase, John
- Re: MQ Triggering in CICS Jxrgen Pedersen
- Re: MQ Triggering in CICS Miller, Dennis
- Re: MQ Triggering in CICS Adiraju, Rao
- Re: MQ Triggering in CICS Miller, Dennis
- Re: MQ Triggering in CICS Adiraju, Rao
- Re: MQ Triggering in CICS Heggie, Peter
- Re: MQ Triggering in CICS Miller, Dennis