Joined: 20 Oct 2006 Posts: 6968 Location: porcelain throne
Prog A links to Prog B.
prog B sends map, sets some kind of indicator in dfhcommarea so:
when user enters data and sends map from the terminal, which will invoke prog A,
prog a will know to link to prog B - so prog B can receive map and process.
CICS will always invoke Prog A. prog A must know (from flag in dfhcomm ?)
that it needs to link to B so B can process the map.
Besides the RETURN isssued by PROG B will return it to PGM A.
you need to learn how cics functions.
As Bill said, the pct controls everything.
and I think the only issues involved with XCTL vs LINK is your lack of knowledge.
I echo Dick. XCTL has been around from before you were born (probably). Millions upon millions are performed daily. If there was a genuine "issue" someone else would have noticed as well.
That is the way CICS works, and it is for a reason. I have used a different terminal monitor, even. Works the same way, as far as returning/not returning to where it left or back up at the top and with a block of information which wings about with it which tells you what you need to know.