i have 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?
Answer Posted / suri
1)data ds2;
do i=100,1020,1890,2565;
set ds1 point=i;
output;
end;
stop;
run;
2)data ds2;
set ds1;
where _n_ in(100,1020,1890,2565);
run;
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
how do you pull data from equifax?tell me the process?
Give some examples where proc report’s defaults are same as proc print’s defaults?
What is SAS? What are the functions does it performs?
What is program data vector (pdv) and what are its functions?
how do you test for missing values? : Sas programming
Hello Friends, am new to this forum and am not good at sas progarmming. please can any one of you send me couple of sample large sample SAS Jobs which can you use 200 MB of data and other sas job upto 25GB of data. am doing a performance testing on our legacy systems and new upgraded system. I would really appreciate if you can do me this favor Thank you Priya
What do the put and input function do?
what is treatment emergent events and treatment emregent adverse event
Can you explain the process of calendar?
How to specify variables to be processed by the freq procedure?
What are the difference between sas functions and procedures?
how would you create a data set with 1 observation and 30 variables from a data set with 30 observations and 1 variable? : Sas programming
Hi,by usining ptf how we have to combine (likr merge)10 datasets at a time in the oracle database(and write a macro code also)?Like this i have a douts a lot if you dont mind may please send one text mail for me(madhusudhanap16@gmail.com)?
if you were told to create many records from one record, show how you would do this using array and with proc transpose? : Sas programming
Explain append procedure?