ENDIF

The ENDIF command will terminate execution of a DO loop if the condition is true for any observation. If the ENDIF is used outside of a DO loop and the condition is true for any observation then the run will stop.

In general, the format is:

  ENDIF(expression)

where expression is the expression to be evaluated.