Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
whether TransID required for Subprogram

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
Author Message
mainframenaidu

New User


Joined: 02 Mar 2005
Posts: 6

PostPosted: Wed Mar 02, 2005 7:12 pm    Post subject: whether TransID required for Subprogram
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
References
priya

Moderator


Joined: 24 Jul 2003
Posts: 624
Location: Bangalore

PostPosted: Wed Mar 02, 2005 9:26 pm    Post subject: Re
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    Post subject: about XCTL
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: 48
Location: Hyderabad

PostPosted: Thu Mar 03, 2005 10:13 am    Post subject:
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    Post subject:
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    Post subject: reply
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    Post subject:
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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1