Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ 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
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    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

priya

Moderator


Joined: 24 Jul 2003
Posts: 568
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: 44
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Is possible to call subprogram from c... cmsmoon COBOL Programming 3 Fri Aug 05, 2016 6:46 pm
No new posts FTP help required amitc23 All Other Mainframe Topics 3 Thu Apr 28, 2016 12:02 pm
No new posts Why Newcopy is required when we have ... DIXINSH CICS 5 Thu Apr 28, 2016 9:47 am
No new posts Replacing Start Transid with LINK pkmurali CICS 12 Tue Apr 19, 2016 8:22 pm
No new posts Tricky sort logic required pgopi92 DFSORT/ICETOOL 3 Mon Jan 25, 2016 3:29 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us