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

about xctl & link


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
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
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
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
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
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: 139
Location: South Africa

PostPosted: Tue May 31, 2005 12:14 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts executing XCTL command in COBOL witho... CICS 10
No new posts How can i link the RHDCSNON programa ... IDMS/ADSO 2
No new posts Run don't walk to your nearest ZOWE l... All Other Mainframe Topics 4
No new posts LE Modules in Link Edit COBOL Programming 1
No new posts Defining SYSLIB to USS c++ (cxx) comp... All Other Mainframe Topics 2
Search our Forums:

Back to Top