data a;
b=3; output;
b=.; output;
run;
proc datasets nolist;
modify a;
ic create not null(b);
ic create check(where=(b=3));
quit;
Currently both these ICs will display:
ERROR: Integrity constraint _CK0001_ was rejected because 1 observations failed the constraint.
Would be handy to have a sample of the errors, similar to the data step:
…was rejected because _n_=2 b=.
Currently after receiving the error you have to regenerate the data set (if you're in batch), then subset it based on the IC to find the failing observations.
(Forum software was complaining non-specifically about an HTML error, then about me spamming when I tried again, so have removed all formatting. An hour lockout seems excessive.)