IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

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


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
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
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: 2358
Location: Israel

PostPosted: Mon Sep 25, 2006 10:56 am
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
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: 771
Location: Germany

PostPosted: Tue Sep 26, 2006 4:29 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
No new posts REXX GETMSG does not return £HASP880... CLIST & REXX 2
No new posts RXSUBCOM Return Codes / Documentation CLIST & REXX 6
No new posts linking an ALC program to a Relationa... PL/I & Assembler 1
Search our Forums:

Back to Top