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 / pratik
data datasetname;(where you want create new dataset)
set datasetname1;(in which you have 100000 records)
if _N_(100,500,1020,1890,2565);
run;
proc print data=datasetname;
run;
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
what are all the reports you generated in your recent project?
how to change the execute of macro
how to do user inputs and command line arguments in sas?
Explain bmdp procedure?
why a stop statement is needed for the point= option on a set statement?
How do you debug and test your SAS programs?
Are you involved in writing the inferential analysis plan? Tables specifications?
What are pdv and it functions?
Mention what are the data types does SAS contain?
what is data integration? : Sas-di
Are you involved in writing the inferential analysis plan? Tables specfications?
Describe what are the different levels of administrative users in sas? : sas-grid-administration
I have a SCD Type 2 Dimention for Location In which A Sales Office in Having two Surrogate Keys just because of the change in it's Sales Group. SKey SalesGroup Sales Office BeginDate EndDate 280 SG1 SO1 01APR2000 01APR2010 281 SG2 SO1 02APR2010 31MAR2999 Now while loading the Fact, the Lookup ir returning SKey 280 for records before and after 01APR2010. I am not able to give WHERE condition in the Lookup Properties (TranDate between BeginDate and EndDate). Please help.
Differentiate between format and informat? : sas-grid-administration
hi all, I need the SAS DI DUMP(A00 260) for attending the certification. if any one have, pls provide it.Please Email to vrpotluri@hotmail.com. Thanks - Ramana