Examples (BREAK command)

VECTOR         #X(10).
LOOP           #I = 1 TO #NREC.
+  DATA LIST      NOTABLE/ #X1 TO #X10 1-20.
+  LOOP           #J = 1 TO 10.
+     DO IF          SYSMIS(#X(#J)).
+        BREAK.
+     END IF.
+     COMPUTE        X = #X(#J).
+     END CASE.
+  END LOOP.
END LOOP.
  • The inner loop terminates when there is a system-missing value for any of the variables #X1 to #X10.
  • The outer loop continues until all records are read.