You can use the OUTALL
statement on PROC SURVEYSELECT
, which will output all records with a selected
flag for selected records.
proc surveyselect data=sashelp.class outall out=classsamp n=5 seed=7;
run;
proc freq data=classsamp;
tables selected;
run;
You will see 5 selected (1) and 14 unselected (0).