IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How To Find name of the transaction that trig another tran


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
morfius9
Warnings : 1

New User


Joined: 22 Feb 2006
Posts: 27

PostPosted: Wed Jul 19, 2006 12:31 pm
Reply with quote

I have a transaction that is triggered from another transaction. How do i find the name of the triggering transaction if i have the name of the triggered transaction.
Back to top
View user's profile Send private message
Hanfur

Active User


Joined: 21 Jun 2006
Posts: 104

PostPosted: Wed Jul 19, 2006 12:46 pm
Reply with quote

Do a search in the source code library which by giving the transaction id(u have) as the search criteria.You will get all progs which references this transaction.

You can refine the search by LINK,XCTL,START commands as these commands could intitate another transactions.


-Han.[/u]
Back to top
View user's profile Send private message
morfius9
Warnings : 1

New User


Joined: 22 Feb 2006
Posts: 27

PostPosted: Wed Jul 19, 2006 2:10 pm
Reply with quote

Fine, But I wanted to do this programatically...i.e. i wanted the name of the initiating transaction in the current transaction. Is there any way to do it in the program?
Back to top
View user's profile Send private message
Hanfur

Active User


Joined: 21 Jun 2006
Posts: 104

PostPosted: Wed Jul 19, 2006 4:53 pm
Reply with quote

I dont think there is a direct way to find that..Most shops have programmes which passes this info ie, intitaing transaction thru the COMMAREA.

A small correction in my prev mail :XCTL and LINK not uses a transaction ID but the program name.

START could invoke a new transaction in addition to TDQ ATI.

-Han.
Back to top
View user's profile Send private message
morfius9
Warnings : 1

New User


Joined: 22 Feb 2006
Posts: 27

PostPosted: Thu Jul 20, 2006 8:41 am
Reply with quote

Han,
The problem is that we have two progs existing PGMA and PGMB. PGMA initiates PGMB by means of issuing start(Tran B). Where TranB is the transaction associated with PGMB. The issue now is that we have multiple transactions invoking TranB by the same method. Now it has become necessary to determine which PGM initiated the TRANB. Now passing it would mean changes to all the Programs that initiate this ProgB as well as ProgB, which i want to avoid. Can you or anyone else help me???
Back to top
View user's profile Send private message
Hanfur

Active User


Joined: 21 Jun 2006
Posts: 104

PostPosted: Thu Jul 20, 2006 11:25 am
Reply with quote

Morphius,

Using teh REQID option too you can pass the info when issueing START command and could retrive that info in the second prog using EIBREQID but still you need to modify all those START calls.

START is an asynchronous process intiating command ie,the intiating tran doesnot have to wait for the second transaction to complete and the second transaction would defenetily should know after processing where the data has to be placed.

In this scenario if you explicty require the info of first transaction you may want to change all those intitating transaction START calls to pass the prog and transaction info to the asyncronosuly started transaction.

Iam not sure of any shorcuts avaialable for this..

-Han.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts How to identify the transaction categ... IMS DB/DC 3
No new posts Find the size of a PS file before rea... COBOL Programming 13
No new posts Start CICS transaction every day at 2AM CICS 4
No new posts Find the occurrence of Key Field (Par... DFSORT/ICETOOL 6
Search our Forums:

Back to Top