NEXT
    

NEXT

Transfers control from within a DO- or WHILE-loop back to the beginning of the block. For DO, the loop variable is then set to the next value in the list and the loop is executed again. Here is a simple example, using a global macro.

GMACRO 
FIVES 
#
# Takes the column named X and changes all entries 
# that are greater than 5 to 5. 
# Constants K90 and K91 are used for scratch work. 
#
NAME K90 = 'N'  K91 = 'I' 
LET 'N' = COUNT('X') 
DO 'I' = 1 : 'N' 
  IF  'X'('I') <= 5 
    NEXT 
  ELSE 
    LET 'X'('I') = 5 
  ENDIF 
ENDDO 
ENDMACRO

The DO-loop goes through all the values in X. If a value is less than or equal to 5, NEXT passes control to the top of the DO-loop and the value is left unchanged. If a value is greater than 5, the ELSEIF block is executed and that value is set to 5.

 

Minitab help Stat Graph SixSigma DOE Glossary Reliability SPC,MSA,CPK
Create Pareto chart - Free tool

Calendar with week numbers

US Federal Holidays

Australia Public Holidays