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 like
100obs,500obs,1020obs,1890obs,2565obs like that i need 100 obs in random order? how can we create this one?
Submitted by: Administratordata A;
do slice = 100,500,1890,256,...100th;
set source point=slice;
output;
end;
stop;
run;
Submitted by: Administrator
do slice = 100,500,1890,256,...100th;
set source point=slice;
output;
end;
stop;
run;
Submitted by: Administrator
alternative method is we can use proc survey select procedure in sas
Submitted by: Poonam Gandhe
Submitted by: Poonam Gandhe
Read Online SAS (Statistical Analysis System) Job Interview Questions And Answers
Top SAS (Statistical Analysis System) Questions
☺ | In PROC PRINT, can you print only variables that begin with the letter “A”? |
☺ | How to add a number to a macro variable? |
☺ | What is option year cuttoff in sas? |
☺ | Code the tables statement for a single-level (most common) frequency? |
Top Data Warehouse Job Categories
☺ | Warehouse Assistant Interview Questions. |
☺ | Ab Initio Interview Questions. |
☺ | Data Stage Interview Questions. |
☺ | ColdFusion Interview Questions. |
☺ | Data Warehouse Supervisor Interview Questions. |