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

Are you involved in writing the inferential analysis plan? Tables specfications?

2226


What is the maximum length of the macro variable?

1181


what is function of retain statment

2041


How would you code a macro statement to produce information on the sas log? This statement can be coded anywhere? : sas-macro

1048


what are the best practices to process the large data sets in sas programming? : Sas-administrator

1026


what is hash files in sas and why we are using this one in sas?

2217


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

4670


I need level 2 to 5 sas using companies in india

2382


what is sas olap server? : Sas-di

1257


what are all the reports you generated in your recent project?

2199


what is sas business intelligence? : Sas-bi

1183


Give e an example of..

2101


Given an unsorted data set, how to read the last observation to a new data set?

1355


Mention common programming errors committed in sas ?

1128


hi tell be about pfizer? how to compare the work with other companies ? please tell me how to login and work also?

2071