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

I have a SCD Type 2 Dimention for Location In which A Sales Office in Having two Surrogate Keys just because of the change in it's Sales Group. SKey SalesGroup Sales Office BeginDate EndDate 280 SG1 SO1 01APR2000 01APR2010 281 SG2 SO1 02APR2010 31MAR2999 Now while loading the Fact, the Lookup ir returning SKey 280 for records before and after 01APR2010. I am not able to give WHERE condition in the Lookup Properties (TranDate between BeginDate and EndDate). Please help.

2146


If you need the value of a variable rather than the variable itself what would you use to load the value to a macro variable? : sas-macro

1057


How to sort in descending order?

1254


Mention some common errors that are usually committed in sas programming.

1042


Approximately what date is represented by the SAS date value of 730?

1217


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

3950


What is the difference between %put and symbolgen? : sas-macro

1236


what is the basic structure sas administrator? : Sas-administrator

1002


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

1205


what are validation tools that are used in sas? : Sas-administrator

1054


: and & modifiers.

1385


What is connection profile? : sas-grid-administration

1164


what is SAS OPTIMIZATION?

2287


What are the five ways to do a table lookup in sas? : sas-grid-administration

1058


What areas of SAS are you most interested in?

1533