View previous topic :: View next topic
|
Author |
Message |
Keanehelp
New User
Joined: 27 May 2008 Posts: 71 Location: USA, CA.
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Keanehelp
New User
Joined: 27 May 2008 Posts: 71 Location: USA, CA.
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
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 |
|
|
|