GOSUB is a command in many versions of the
BASIC computer
programming language. A GOSUB statement jumps to a line elsewhere in the program. That line and the following lines up to a
RETURN are used as a simple kind of a
subroutine without (sometimes with) parameters or local
variables.