1. assign a sequencial number to the record in your data set (e.g. 100 records);
data myData;
set originalData;
rec=_N_;
run;
2. create a data set which contains the randomly selected records (e.g. 20);
data pickup_rec(drop=i);
do i=1 to 100;
rec=int(100*ranuni(12345)); /*you have to make decision of selection with replacement or without replacement*/
output;
end;
run;
3. merging
proc sql;
create table Result as
select a.* from myData as a, pickup_rec as b;
where a.rec=b.rec
order by a.rec;
quit;