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

There are 200 observations in a dataset, i want to pull out
the observation no's 100, 150,180,190 by using Proc SQL? How
you can get it?

Answer Posted / jim

* Setup test data;
data test;
do i=1 to 200;
j=ranuni(i);
output;
end;
run;

Proc Sql;
Select *,monotonic ()as c from test
having c in (100,150,180,190);
quit;

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How would you identify a macro variable?

1043


what is the purpose of _error_? : Sas programming

1088


How will you react when, while consulting a SAS documentation manual to get an answer to a problem, someone says hey, I thought you were supposed to know all that stuff already, and not have to look it up in a book?

2410


Compare sas with other data analytics tools.

988


What was the last computer book you purchased? Why?

2332


Explain translate function?

1145


What does proc print, and proc contents are used for?

1069


Difference between informat and format?

1049


What do the PUT and INPUT functions do?

1274


What are the applications primarily used by business analyst? : Sas-bi

950


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

982


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

2184


what is the different between functions and procs that calculate the same simple descriptive statistics? : Sas programming

1005


Mention the difference between ceil and floor functions in sas?

1109


What is the difference between where and if statement?

1074