In XCTL where the command is transferred to another program at the same we mean to say that the program 1 is released from the memory and program 2 is replaced.
we have a cics screen which is the menu screen and has various options like insert,update etc.
If suppose we give an option of insert ,the control is intially at the menu loical level.When we enter an option say insert the control will be transferred to the insert screen level from the menu screen level.
whereas in link, the command is transferred to another program at a lower logical level.here the menu pgm is retained in memory while the insert is being called.After the insert operation is performed the control shift's back to the menu pgm.
Link command funtions like a subroutine.
Thx for ur quick response, I am going to bother you again as it is not clear.
you have given example of menu screen , For xctl control goes permanently to insert screen ,Is the same logical level means that XCtl'ed pgm should be in Prg 1 . IF it is so
Then i am confused for link
As you said that same menu screen ,control will go to inset screen then control will come back.
My question is is MENU and INSERT pgm are on same level , if they are in same logical level then how link can be done .
Logical levels means the different triggers(conditiond like transid,functions like xctl,link) which cause the program to execute.
When we say the pgm is executing at the highest logical level it is that pgm which executes when the transid is entered.
I will send u a cbt of cics that I.The module 9 of this covers xctl and link.It will help u clear u doubts.