XCTL and RETURN IMMEDIATE.

Customer Information Control System. Middleware and MQ Series.
Post Reply
Keval Mehta
New Member
Posts: 9
Joined: Fri Jul 18, 2014 4:09 pm

XCTL and RETURN IMMEDIATE.

Post by Keval Mehta »

Hi,

Can we say that RETURN IMMEDIATE is an alternative to XCTL?
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: XCTL and RETURN IMMEDIATE.

Post by Robert Sample »

No. XCTL works at the same level of CICS code -- if you've done EXEC CICS LINK followed by another EXEC CICS LINK, the difference will be that XCTL will be on level 3 so a RETURN will take you back to the program that issued the second EXEC CICS LINK while a RETURN IMMEDIATE starts again at level 1. Hence the programs that did EXEC CICS LINK will no longer be active after RETURN IMMEDIATE whereas they will still be active after the EXEC CICS XCTL.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “CICS, Middleware and MQ Series.”