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 can be the size of largest dataset in SAS?

1174


what is null hypothesis? why do you consider that?

2849


Do you need to know if there are any missing values?

996


What are the difference between sas functions and procedures?

1071


How to create a permanent sas data set?

1140


What is the order of application for output data set options, input data set options and SAS statements?

1506


what are informats in sas? : Sas-administrator

1018


how does sas handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, procs? : Sas programming

987


Differentiate between format and informat? : sas-grid-administration

1012


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

1155


How will you generate test data with no input data?

1107


List down the reasons for choosing sas over other data analytics tools.

1214


Explain append procedure?

1024


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

1104


Enlist the syntax rules followed in sas statements.

1034