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

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

1239


what is SAS OPTIMIZATION?

2298


What would be the result of the following SAS function (given that 31 Dec, 2000 is Sunday)?

1161


How do you control the number of observations and/or variables read or written? Approximately what date is represented by the SAS date value of 730?

1674


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

1059


is data integration and etl programming is same? : Sas-di

1084


How do you convert basic cube to transaction cube and transaction cube to basic cube?

2233


What is the good sas programming practices for processing large data sets?

1120


What is the SAS data set?

1132


What are all the problems you faced while validating tables and reports?

3472


Explain the difference between nodup and nodupkey options?

1029


How would you define the end of a macro? : sas-macro

1094


What is SAS informats?

1107


hi here is a problem can anybody solve this? i want to report the data through third party file. by using data _null_ or proc report or macro automation process. but i want to insert the 'titles and footnotes' in between the data and also starting of 2nd and ending of 2nd and starting of 3rd and ending of the 3rd page. tell me how and write the code?

2121


What do you know about symput and symget?

1251