data EMDATA.SMPS4B6U(label="Sample of EMDATA.VIEW_DP2."); set EMDATA.VIEW_DP2; drop _sample_count_; if _sample_count_ < 596 then do; if ranuni(12345)*(5961 - _N_) <= (596 - _sample_count_) then do; _sample_count_ + 1; output; end; end; run; quit;