EXIT
    

EXIT

EXIT has two very different behaviors depending on whether it is used in global and local macros, or in Execs:

·    In a global or local macro, EXIT transfers control back to interactive Minitab.

·    In an Exec, EXIT closes Minitab.

Here is a modification of the macro NOMISS, that correctly handles the case when X contains no missing values.

LET K90 = COUNT('X') 
DO K91 = 1:K90 
  IF  'X'(K91) = '*' 
    BREAK 
  ENDIF 
  IF K91 = K90 
    NOTE Note: There are no missing observations in X. 
    EXIT 
  ENDIF 
ENDDO 
DELETE  K91:K90 'X'