GOTO number (other Minitab commands and macro statements) MLABEL number |
Allows you to branch to any line in your macro. There can be several GOTO's in one program. A GOTO is matched to the MLABEL that has the same number. The number can be any integer from 1 to 8 digits long. It cannot be a variable.
Here is the program we used to illustrate BREAK above, but now coded with a GOTO.
LET K90 = COUNT('X')
DO K91 = 1 : K90
IF 'X'(K91) = '*'
GOTO 5
ENDIF
ENDDO
MLABEL 5
DELETE K91:K90 'X'