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
 

 

about xctl & link

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
narasimharao_koganti

New User


Joined: 26 Apr 2005
Posts: 11
Location: pune

PostPosted: Sat May 21, 2005 7:52 pm    Post subject: about xctl & link
Reply with quote

Hi,
I had been aksed this questions in EDS, A------>B------->C----->A.
A calls B through Link, and B calls C through Link, and C calls A through XCTL and i used goto. Where will be the control after execution of A, called by C.
Back to top
View user's profile Send private message

priya

Moderator


Joined: 24 Jul 2003
Posts: 568
Location: Bangalore

PostPosted: Sat May 21, 2005 10:53 pm    Post subject:
Reply with quote

A
-
-
-
B
-
-
C - - - A


So it goes to B.
Back to top
View user's profile Send private message
senthilkumar selvaraju

New User


Joined: 30 May 2005
Posts: 16

PostPosted: Mon May 30, 2005 9:28 pm    Post subject:
Reply with quote

not sure it will goes to program B.
Back to top
View user's profile Send private message
kanak

Moderator


Joined: 12 Mar 2005
Posts: 252
Location: India

PostPosted: Tue May 31, 2005 10:23 am    Post subject:
Reply with quote

hi senthilkumar selvaraju,

it will go to program B as when a program is called thru XCTL then when retun command is issued it goes to one level hiher.

In the flow given by priya is correct as XCTL calls at same level where as link one level down. If return was issued from C for the same call style then also it would have gone to B.
Back to top
View user's profile Send private message
jkbytes

Active User


Joined: 19 Feb 2005
Posts: 141
Location: South Africa

PostPosted: Tue May 31, 2005 12:14 pm    Post subject: Re: about xctl & link
Reply with quote

Dear Mr.Narasimharao,

Since LINK command transfers control from the original program to another program at one logical level lower than the current so it expects the control to be returned to the originating program upon the sucessful execution of the return command.

XCTL transfers program control from one application to another at the same logical level. so as priya wrote

Quote:
A
-
-
-
B
-
-
C - - - A

So it goes to B.


The control will be in B.
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 DIrect link of dynam/nodynam nkjain87 COBOL Programming 2 Mon Apr 24, 2017 6:23 pm
No new posts compile and link program in 6.1 brigitte pruett COBOL Programming 3 Tue Aug 16, 2016 12:09 am
No new posts Event-driven programming (BTS) VS (ST... Rohit Umarjikar CICS 2 Sat Jun 11, 2016 2:05 am
No new posts LINK Call srajendran2 CICS 2 Fri Apr 22, 2016 1:35 am
No new posts Replacing Start Transid with LINK pkmurali CICS 12 Tue Apr 19, 2016 8:22 pm


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