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

What happens to the calling program in case of XCTL command


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Keanehelp

New User


Joined: 27 May 2008
Posts: 71
Location: USA, CA.

PostPosted: Sat Mar 21, 2009 6:43 am
Reply with quote

Hi,

Can anyone let me know what happens to the calling program that issues
EXEC CICS XCTL command.

Will the program still remain in normal execution of the statements given after XCTL or will it b loaded off the memory as soon as XCTL is issued ?

Regards,
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Mar 21, 2009 7:15 am
Reply with quote

Hello,

The program that issues the XCTL is not a "calling program". An XCTL is more like a "go to" than a perform. Control does not automatically return to the program that XCTLs another.

It may or may not be "loaded off" immediately.
Back to top
View user's profile Send private message
Keanehelp

New User


Joined: 27 May 2008
Posts: 71
Location: USA, CA.

PostPosted: Sun Mar 22, 2009 4:42 am
Reply with quote

Hi,

So does that means that once we XCTL, the main program does not executes the code after the XCTL command ? Or will both the programs coexist and the main program will still perform the things after the XCTL command ?

Thanks for you reply sir.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Sun Mar 22, 2009 5:24 am
Reply with quote

From the CICS Language Reference (link at the top of the page) on XCTL:
Quote:
XCTL transfers control from one application program to another at the same logical level. The program from which control is transferred is released. If the program to which control is transferred is not already in main storage, it is loaded.
Released means gone ... no longer running ... transfer control means what it implies: the program control is transferred to starts running, the program control is transferred from has finished and is no longer running. Any commands after the XCTL will not be executed.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Sun Mar 22, 2009 5:28 am
Reply with quote

Keanehelp wrote:
So does that means that once we XCTL, the main program does not executes the code after the XCTL command ?
Yes.
Quote:
Or will both the programs coexist and the main program will still perform the things after the XCTL command ?
No, for that you would need something like a START.....
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 RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Using API Gateway from CICS program CICS 0
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
Search our Forums:

Back to Top