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 is the difference between SAS functions and procedures?

1158


explain the main difference between the nodup and nodupkey options? : Sas-administrator

1167


How would you determine the number of missing or nonmissing values in computations?

1076


What will calendar procedure do?

1081


What’s the difference between var b1 – b3 and var b1 — b3?

1370


what type of graphs we will create(for 2+years candidates)?

2313


What is a method to debug and test your SAS program?

1381


how can you create zero observation dataset? : Sas programming

1154


Mention what is SAS data set?

1137


What is program data vector (pdv) and what are its functions?

1255


what is sas and what are the functions? : Sas-administrator

993


how does sas handle missing values in functions? : Sas programming

1222


What is the difference between using drop = data set option in data statement and set statement?

1166


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

1096


what is the one statement to set the criteria of data that can be coded in any step? : Sas programming

1158