STOP
RUN – This should be coded in the main program(Calling program)
which specifies the end of the program and returns the control to OS.
EXIT
PROGRAM – This should be coded in the Called program, which
specifies the end of the called program and returns control back to calling program (Main program).
GOBACK – Can be coded
both in Called program and Calling program.
When coded in calling program, it must be the last statement
in the program and any statements after GOBACK will not be executed. It gives
control back to OS. When coded in calling program, gives control back to called
program.
No comments:
Post a Comment