With JSL you could try using Select Out of Spec Values with Process Capability
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Cities.jmp");
obj = dt << Process Capability(
Process Variables(:OZONE, :CO, :SO2, :NO),
Spec Limits(Import Spec Limits("$SAMPLE_DATA/CitySpecLimits.jmp"))
);
obj << Select Out of Spec Values(1);
And then set 1 to those rows which have been selected and then clear selection (and close platform)
-Jarmo