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
State the difference between INFORMAT and FORMAT ?
what are _numeric_ and _character_ and what do they do? : Sas programming
What are the data types does SAS contain?
how to create the AE dataset by using SDTMIG specifications and SAP plan by using UNIX platform?
Hi Friends, Am Priya,new to your forum. am looking for Interview questions on SAS Platform Administration. I searched everywhere but I couldn't find them,please can anyone help me with complete interview questions normally everyone will face in the interviews on SAS Administration. am really facing problems in the interviews,am not able to answer any of their questions. I would really appreciate all your help if you can email the complete Interview Questions to priyafeb84@gmail.com Kindly awaiting for your reply with eager
Name validation tools used in SAS
What are the difference between sas functions and procedures?
What is the role of administrative users? : sas-grid-administration
what are sas/access and sas/connect? : Sas programming
What is the sas data set? : sas-grid-administration
What is SAS?
Enlist the syntax rules followed in sas statements.
If money were no object, what would you like to do?
what is the difference between calculating the 'mean' using the mean function and proc means? : Sas programming
What is the basic structure of the SAS base program?