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: 757
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 EXIT or RETURN cvnlynn CLIST & REXX 16 Wed Jul 19, 2017 2:50 am
No new posts QUESTION: RETURN CHANNEL pahiker CA Products 21 Thu Apr 20, 2017 12:31 am
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts MAX-RC 88 and Return code 606 in DFH0... lind sh CICS 2 Tue Jan 24, 2017 1:23 pm
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 2 Thu Jan 12, 2017 12:02 pm


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