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 / singh.naveen409

proc sort data=qqq;
by name;
run;
options mlogic;
data www;
set qqq;
by name;
if first.name then serial=1
run;
data wwq (drop=serial);
set www;
if serial ne '1';
run;

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you know about symput and symget?

1319


How might you use MOD and INT on numeric to mimic SUBSTR on character Strings?

1409


Give some examples where proc report’s defaults are same as proc print’s defaults?

1167


What is the differnce between SDTM 3.1.2 to 3.1.1 version

5118


What is SAS? What are the functions does it performs?

1247


What is the role of administrative users? : sas-grid-administration

1137


Explain bmdp procedure?

1084


what are some differences between proc summary and proc means? : Sas programming

1194


What is the difference between where and if statement?

1152


What system options would you use to help debug a macro? : sas-macro

1154


Mention what is SAS data set?

1178


What are the statements in proc sql?

1149


Explain by-group processing?

1039


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

2453


What are types of transport files?

8087