Gosub

Moves the processing to the specified subroutine.

Gosub <Label>

Parameters
<Label>
Label (Label) for the movement destination.

Return Value
None.

Description
After processing has been moved to the specified subroutine, it is returned using the Return command and the processing is moved to the next line after the line the Gosub command had moved processing to.
Specify the Label name to attach to the starting line of the subroutine to be called in <Label>.
When processing is moved using the Gosub command, always be sure to allow it to return using Return.In processing where Return is not used, use the goto statement.

Example
Define a Subroutine (*INITPROC) that will be executed at Macro Program load time.
      *MCRINIT

            Gosub *INITPROC

        Return

        *INITPROC

            ' Initialization processing

        Return