This command terminates a subroutine. It must follow all other executable commands within the subroutine. The only statements that may follow an END SUBROUTINE command are a comment, a new SUBROUTINE command or an INCLUDE command; the included Script must contain more subroutine definitions.
A subroutine is initiated by the SUBROUTINE command.
END SUBROUTINE
END SUBROUTINE