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 is the role of sas grid administrator? : sas-grid-administration
how does sas handle missing values in sort order? : Sas programming
What is the differnce between SDTM 3.1.2 to 3.1.1 version
how we can create a FLAG datasets? Ex:-ID age_group no_persons 1 to 10 10 to 20 3 11 to 20 21 to 30 7 21 to 3o 31 to 40 5
what cause the "error: connect:" and "error in the libname statement" when there weren't any such problems?
How will you use the WHO Drug Dictionary for Reporting Clinical Trials?
hi here is a problem can anybody solve this? i want to report the data through third party file. by using data _null_ or proc report or macro automation process. but i want to insert the 'titles and footnotes' in between the data and also starting of 2nd and ending of 2nd and starting of 3rd and ending of the 3rd page. tell me how and write the code?
Can you suggest us materials for sdtm mapping?
What would be the result of the following SAS function (given that 31 Dec, 2000 is Sunday)?
What are the difference between ceil and floor functions in sas?
What is proc sort?
what is the primary data source for the wrs? : Sas-bi
how to read the variables in sas? : Sas-administrator
Briefly explain input and put function?
Hi, Does anybody has lastest SAS certification(base, adv., clinical)dumps,if anybody has please email me at mailtorajani76@gmail.com. Thanks