Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 7995
Location: Bellevue, IA

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 TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Customizing the ISPF HILITE Command Pedro TSO/ISPF 3 Fri Mar 03, 2017 11:49 pm
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts VALIDATE NULL VALUE IN DB2 CASE STATE... useit DB2 5 Thu Feb 09, 2017 4:34 pm
No new posts Calling procedure with multiple entri... steve-myers PL/I & Assembler 5 Fri Jan 27, 2017 3:33 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us