Answers

Question and Answer:

  Home  SAS

⟩ Suppose a dataset with 100000 records. i want 100 records from that dataset and create a dataset.we need to pick the observations random order like100obs,500obs,1020obs,1890obs,2565obs like that i need 100 obs in random order? how can we create this one?

data A;

do slice = 100,500,1890,256,...100th;

set source point=slice;

output;

end;

stop;

run;

 158 views

More Questions for you: