Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / suri

1)data ds2;
do i=100,1020,1890,2565;
set ds1 point=i;
output;
end;
stop;
run;

2)data ds2;
set ds1;
where _n_ in(100,1020,1890,2565);
run;

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

which date functions advances a date time or date/time value by a given interval? : Sas programming

905


What system options would you use to help debug a macro? : sas-macro

1052


how to do user inputs and command line arguments in sas?

2977


What is the purpose of _character_ and _numeric_?

1014


What are the functions which are used for character handling functions?

1081


How do you delete duplicate observations in sas?

1011


How do you use the do loop if you don’t know how many times you should execute the do loop?

1215


explain the function of substr in sas? : Sas-administrator

957


What areas of SAS are you most interested in?

1476


what are the component of range? : Sas-bi

1021


what is sas metadata server? : Sas-di

1051


if the Id has more then two transcatiion then show the first observation, IF Id has only two observation then It show both the observation

1555


what is transformation in sas data integration? : Sas-di

975


What are pdv and it functions?

1038


Of all your work, where have you been the most successful?

4621