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
 

 

A Linking XCTling C, Return from C will go where?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
prasadvn_mca

New User


Joined: 15 Sep 2006
Posts: 5

PostPosted: Mon Sep 25, 2006 7:59 am    Post subject: A Linking XCTling C, Return from C will go where?
Reply with quote

hello friends,

i am struck with one thing plz help me out in this situation.

assume that there are 3 programs a,b,c

if program a is calling program b by link and program b calls program c through xctl, then if i have a return in program c where does the control go, this is the cics-cobol program

ie.

program a -----(link)--------> program b -----------(xctl)--------> program c

and i have return in program c
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Mon Sep 25, 2006 10:56 am    Post subject:
Reply with quote

Can't you try it? icon_biggrin.gif

O.
Back to top
View user's profile Send private message
kgumraj

Active User


Joined: 01 May 2006
Posts: 151
Location: Hyderabad

PostPosted: Mon Sep 25, 2006 9:47 pm    Post subject: Re: what will be the result of this
Reply with quote

When ever their is a subprogram in CICS it is based on the levels

say Program A (main program) is calling program B (by link) and program B caliing program C (XCTL)
then

level program
**************************
05(say) Program A
06 Program B (since Link)
06 Program C (since XCTL)
*************************

I feel you got it
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 743
Location: Germany

PostPosted: Tue Sep 26, 2006 4:29 pm    Post subject:
Reply with quote

Hi prasadvn_mca !

In your example pgm-a is calling pgm-b by ecec-cics-link.
Control is given to pgm-b. This one executes pgm-c by xctl.
Progamm-c is started. Programm-B is returning to Programm-a.

EXEC CICS XCTL only starts a new transaction.

Please correct me, if i'm wrong.

Regards, UmeySan
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 -> Mainframe Interview Questions 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 Capture the Max return code of... anilkumar922 All Other Mainframe Topics 0 Thu Jan 12, 2017 12:02 pm
No new posts DFHWS2LS return value divated CICS 4 Mon Nov 07, 2016 5:44 pm
No new posts EZASOCKET Return code 32509 amitc23 All Other Mainframe Topics 4 Mon May 23, 2016 4:13 pm
No new posts DB2 SP - Return a returned resultset ... rakesh1155 DB2 3 Wed Oct 28, 2015 1:45 am
No new posts Assembler Code to check normal retur... amitc23 PL/I & Assembler 6 Mon Aug 17, 2015 3:52 pm


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