The gosub statement transfers control to a local subroutine identified by a statement label within the program. Control returns to the next statement after the gosub statement when the return statement is encountered.
gosub statement.label{:}
statement.label | Identifies the local subroutine to which control is transferred. |