Wednesday 19 August 2015

STOP RUN, EXIT PROGRAM, GOBACK, GO TO

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.

GO TO – To pass the control to specific PARA. Any statement after GO TO will not be executed.

No comments:

Post a Comment