I have 3 screens. I am using XCTL to move from Screen 1 to Screen 2 and XCTL again from Screen 2 to screen 3.While coming back from screen 3 to screen 2 I tried using XCTL and its not working. Each Screen has associated program and each program has different transaction id.
What could be the problem ?
Ps: I tried using Link from one program to another and while returning back I used return statement. It was giving me INVREQ (AEIP Abend code).
i think in this case u can use Pseudo conversation, u can return with the transid of the screen u need... also in case of XCTL i dont think you can go back from the called program to calling program. Link should work for this case and am not sure why it fails for you.
On my point of view its better to use the pseduo conversaion for this case.
XCTL is used when you transfer control to another program in the same logical level. It does not expect the control to return back to it. Only because of it, you get AEIP i feel. You can go with LINK. There should not be any problem with that. For this case, you always prefer psuedo conversation. That'll be of great help..........