Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is the difference between the commands CALL, RETURN, TFRCTL?

commands difference Return
0
Posted

What is the difference between the commands CALL, RETURN, TFRCTL?

0

In a CALL, the calling program receives the control after the called program finishes the processing at the command after the call to called program. Control is thus returned up the program stack. The RETURN command has no parameters and removes the program from the program stack. If no RETURN statement is coded in a CL program, a return is performed after the last executable statement is performed. The TRFCTL command transfers the control to the program and removes the transferring program from the program stack. It returns the control to the statement after the most recently run CALL command in the program that called the transferring program. No statements after the TFRCTL in a CL program will be executed.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123