I had been aksed this questions in EDS, A------>B------->C----->A.
A calls B through Link, and B calls C through Link, and C calls A through XCTL and i used goto. Where will be the control after execution of A, called by C.
Joined: 19 Feb 2005 Posts: 141 Location: South Africa
Since LINK command transfers control from the original program to another program at one logical level lower than the current so it expects the control to be returned to the originating program upon the sucessful execution of the return command.
XCTL transfers program control from one application to another at the same logical level. so as priya wrote