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 the new features included in the new version of SAS Programming Language?
what is study design in while working with SAS? what are screening variables in SAS?
Which command is used to perform sorting in sas program?
What are the features of base sas system?
What is the maximum and minimum length of macro variable
Explain the difference between informat and format with an example.
explain the difference between proc means and proc summary?
Define run-group processing?
How do dates work in SAS data?
How will you generate test data with no input data?
what is factor analysis? : Sas-administrator
what are some good sas programming practices for processing very large data sets? : Sas programming
what do the sas log messages "numeric values have been converted to character" mean? : Sas programming
What is data _null_?
How to create a permanent sas data set?