View previous topic :: View next topic
|
Author |
Message |
narasimharao_koganti
New User
Joined: 26 Apr 2005 Posts: 11 Location: pune
|
|
|
|
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 |
|
|
priya
Moderator
Joined: 24 Jul 2003 Posts: 568 Location: Bangalore
|
|
|
|
A
-
-
-
B
-
-
C - - - A
So it goes to B. |
|
Back to top |
|
|
senthilkumar selvaraju
New User
Joined: 30 May 2005 Posts: 16
|
|
|
|
not sure it will goes to program B. |
|
Back to top |
|
|
kanak
Moderator
Joined: 12 Mar 2005 Posts: 252 Location: India
|
|
|
|
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 |
|
|
jkbytes
Active User
Joined: 19 Feb 2005 Posts: 139 Location: South Africa
|
|
|
|
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 |
|
|
|