View previous topic :: View next topic
|
Author |
Message |
mainframenaidu
New User
Joined: 02 Mar 2005 Posts: 6
|
|
|
|
I have program A and B, i am calling Program B thru XCTL , is trans-id will change?? |
|
Back to top |
|
|
priya
Moderator
Joined: 24 Jul 2003 Posts: 568 Location: Bangalore
|
|
|
|
Dear Naidu,
Ok, I am guessing, what you want!
PROGRAM A calls PROGRAM B.
I assume X as the transaction name of A.
So
EXEC CICS XCTL PROGRAM(B) END-EXEC.
The answer to your question, there is no need to create a transaction name for B and the transaction name of A (that's X) will not change.
Are you clear or not? |
|
Back to top |
|
|
mainframenaidu
New User
Joined: 02 Mar 2005 Posts: 6
|
|
|
|
Hi priya,
U are saying that there is no need to create a transaction name for B and the transaction name of A (that's X) will not change.
my question to u ,How the cics program will execute, means what are all tables need to be entered and How ???
thanks,
Mahendar naidu |
|
Back to top |
|
|
brahmanandareddy
New User
Joined: 16 Dec 2004 Posts: 44 Location: Hyderabad
|
|
|
|
Hi Mahendar Naidu,
U will have to follow the following steps to run the above program
Define & install prog A
Define & install trans for prog A (for prog B trans is not required)
Thank You,
Bramhananda Reddy. K. |
|
Back to top |
|
|
mainframenaidu
New User
Joined: 02 Mar 2005 Posts: 6
|
|
|
|
hi Bramhananda Reddy. K,
ok, i have program A and B.
Program A will do Addition and B will do Subtraction.
In PCT, Prog A tran id X(function name ADD), Prog B tran id Y(SUB).
Now i am calling B from A, so control will trafer to B(permanently), so traction id will change or not?
Thanks,
Naidu |
|
Back to top |
|
|
rexph
New User
Joined: 03 Mar 2005 Posts: 2
|
|
|
|
The transaction Id will change. Say currently you are executing tran A, the active transaction would be A. Then you execute an XCTL to tran B then the active transation would be tran B. The whole concept of LINK and XCTL is transferring control and resources to the called program so the active transaction would still be the active program. In this case program B. I hope this helps.
Rex |
|
Back to top |
|
|
sarma Kappagantu
New User
Joined: 17 Mar 2005 Posts: 22 Location: Bangalore
|
|
|
|
Program A has PPT entry. It also was given a PCT entry of X.
Program B has PPT entry. It also was given a PCT entry of Y.
Now tran X is strated. It starts program A.
Now prog A, XCTLs to prog B.
The transaction ID while executing program B is also X only.
Please write simple program and execute it using CEDF. In the CEDF screen, you can see the program name and transaction ID clearly and you can judge, if the transaction changes are not on your own. |
|
Back to top |
|
|
|