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


Please Help Members By Posting Answers For Below Questions

What are the new features included in the new version of SAS Programming Language?

741


what is study design in while working with SAS? what are screening variables in SAS?

1685


Which command is used to perform sorting in sas program?

599


What are the features of base sas system?

615


What is the maximum and minimum length of macro variable

659






Explain the difference between informat and format with an example.

689


explain the difference between proc means and proc summary?

675


Define run-group processing?

583


How do dates work in SAS data?

692


How will you generate test data with no input data?

565


what is factor analysis? : Sas-administrator

617


what are some good sas programming practices for processing very large data sets? : Sas programming

515


what do the sas log messages "numeric values have been converted to character" mean? : Sas programming

547


What is data _null_?

701


How to create a permanent sas data set?

680