Page 1 of 1
XCTL and RETURN IMMEDIATE.
Posted: Tue Apr 24, 2018 11:31 am
by Keval Mehta
Hi,
Can we say that RETURN IMMEDIATE is an alternative to XCTL?
Re: XCTL and RETURN IMMEDIATE.
Posted: Tue Apr 24, 2018 5:12 pm
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.