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

whether TransID required for Subprogram


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

New User


Joined: 02 Mar 2005
Posts: 6

PostPosted: Wed Mar 02, 2005 7:12 pm
Reply with quote

I have program A and B, i am calling Program B thru XCTL , is trans-id will change??
Back to top
View user's profile Send private message
priya

Moderator


Joined: 24 Jul 2003
Posts: 568
Location: Bangalore

PostPosted: Wed Mar 02, 2005 9:26 pm
Reply with quote

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
View user's profile Send private message
mainframenaidu

New User


Joined: 02 Mar 2005
Posts: 6

PostPosted: Thu Mar 03, 2005 9:57 am
Reply with quote

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
View user's profile Send private message
brahmanandareddy

New User


Joined: 16 Dec 2004
Posts: 44
Location: Hyderabad

PostPosted: Thu Mar 03, 2005 10:13 am
Reply with quote

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
View user's profile Send private message
mainframenaidu

New User


Joined: 02 Mar 2005
Posts: 6

PostPosted: Thu Mar 03, 2005 10:38 am
Reply with quote

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
View user's profile Send private message
rexph

New User


Joined: 03 Mar 2005
Posts: 2

PostPosted: Thu Mar 03, 2005 12:53 pm
Reply with quote

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
View user's profile Send private message
sarma Kappagantu

New User


Joined: 17 Mar 2005
Posts: 22
Location: Bangalore

PostPosted: Mon Mar 21, 2005 12:01 pm
Reply with quote

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
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 Duplicate transid's declared using CEDA CICS 3
No new posts How to go into a subprogram in IBM De... IBM Tools 5
No new posts Parallel Sysplex - subprogram execution CICS 7
No new posts Required Date Format in Include Sort ... DFSORT/ICETOOL 6
No new posts COMPUSET/XICS z/os document required All Other Mainframe Topics 1
Search our Forums:

Back to Top