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

you have a data set like this.
data qqq;
input name $ total;
cards;
qq 22
ww 33
qq 22
ee 44
rr 33
ww 44
;
run;
and you want output like this.........
name total
qq 22
ww 44

Do it by data set step.

Answer Posted / vishal

proc sort data=qqq;
by name;
run;

data f;
set qqq;
by name;
if first.name=0;
run;

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is function of retain statment

2042


What are the implications?

1720


How do you use the do loop if you don’t know how many times you should execute the do loop?

1267


I have a dataset concat having a variable a b & c. How to rename a b to e & f?

1290


in the flow of data step processing, what is the first action in a typical data step? : Sas programming

1081


Describe the function and untility of the most difficult SAS macro that you have written.

2226


what is the use of sas management console? : Sas-di

1100


what do the sas log messages "numeric values have been converted to character" mean? : Sas programming

1038


Enlist the syntax rules followed in sas statements.

1089


What are the different servers in sas? : sas-grid-administration

1061


which features do you use to check the data validations and errors? : Sas-administrator

1061


how are numeric and character missing values represented internally? : Sas programming

1154


Difference between informat and format?

1100


how can you create zero observation dataset? : Sas programming

1154


What is the difference between match merge and one to one merge?

1254