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

how can get the first and last observations in a dataset
using Proc SQl?

Answer Posted / venkatesh layam

crate one data in sql with adding of new var (a = 1) and
sort(order by) descending order by another variable and
take distinct of a (newvar-which is already created) --then
u wil get last observation.

next do ascending and get first obs ,then union these two
data sets .u will get first and last obs.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the purpose of retain statement.

1046


What is the function of Stop statement in a SAS Program?

1143


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

1231


What are the data types does SAS contain?

1103


What is the basic syntax style in SAS?

1157


what other sas products have you used and consider yourself proficient in using? : Sas programming

1104


Describe crosslist option in tables statement?

1215


How would you include common or reuse to be processed along with your statements?

2362


what are several options for creating reports in web report studio? : Sas-bi

1143


How we can create SAS USER DEFINED CODE?

2082


What are the functions used for character handling?

1245


why is sas data integration studio important? : Sas-di

1029


Do we follow ADAM in analysis dataset development?How? Usually which version? Why is it necessary?

2402


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

3944


What is the purpose of trailing @ and @@? How do you use them?

1032