Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
What happens to the calling program in case of XCTL command

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

New User


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

PostPosted: Sat Mar 21, 2009 6:43 am    Post subject: What happens to the calling program in case of XCTL command
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

Site Director


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

PostPosted: Sat Mar 21, 2009 7:15 am    Post subject:
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: 70
Location: USA, CA.

PostPosted: Sun Mar 22, 2009 4:42 am    Post subject:
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: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Sun Mar 22, 2009 5:24 am    Post subject:
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: 2150
Location: At my coffee table

PostPosted: Sun Mar 22, 2009 5:28 am    Post subject:
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    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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts MQ command in option 6 of ISPF! Vignesh Sid All Other Mainframe Topics 3 Tue Sep 26, 2017 6:01 pm
No new posts How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm
No new posts Failure after DIR command Hank Watson All Other Mainframe Topics 2 Tue Aug 29, 2017 3:14 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us