Title: 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-----
From: MQSeries List [mailto:[EMAIL PROTECTED] On Behalf Of Adiraju, Rao
Sent: Tuesday, March 02, 2004 3:11 PM
To: [EMAIL PROTECTED]
Subject: Re: MQ Triggering in CICS

 

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
Sent: 3 March 2004 8:59 AM
To: 'MQSeries List'
Subject: RE: MQ Triggering in CICS

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
WebSphere MQ Specialist
The National Bank of NZ Ltd.
Wellington - New Zealand
Tel:  +64-4-494 4299
Fax: +64-4-802 8509
Mbl: +64-211-216-116

 


From: DeBlassio, Joe [mailto:[EMAIL PROTECTED]
Sent: 3 March 2004 2:56 AM
To: [EMAIL PROTECTED]
Subject: Re: MQ Triggering in CICS

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               
          SET (ADDRESS OF MQTM) 
       LENGTH (LENGTH  OF MQTM) 
     RTRANSID (VARIABLE-RTRANSID)      
         RESP (VARIABLE-EIBRESP)       
END-EXEC.

Make sure you include copybook CMQTML in your linkage section.
And define the variables in working storage.

Good luck,
Joe

-----Original Message-----
From: Dawson, John [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 01, 2004 3:19 PM
To: [EMAIL PROTECTED]
Subject: MQ Triggering in CICS

 

Folks,

In a CICS program, how can I tell that the CICS program was started from a
MQ trigger?

 

Thanks,

John Dawson

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive

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.



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.

Reply via email to