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 / bharath

data qqq;
input name $ total;
cards;
qq 22
ww 33
qq 22
ee 44
rr 33
ww 44
;
run;


data abc;
set qqq;
if total in (22,44) and name in ('qq', 'ww');
proc print;
run;

data abc1;
set abc;
by name;
if first.name;
run;
proc print;
run;

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

explain about sas business intelligence? : Sas-bi

1064


Describe the ways in which you can create a macro variable?

1032


What is the difference between nodupkey and nodup options?

969


What is the basic structure of a sas program?

1052


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

1010


what are the scrubbing procedures in sas? : Sas programming

1221


where to use sas business intelligence? : Sas-bi

1000


List out some key concept of SAS

1039


what are the component of range? : Sas-bi

1015


explain about various caches available in data integrator? : Sas-di

990


what is the primary data source for the wrs? : Sas-bi

1132


How does SAS handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, PROCs?

1476


what is program data vector? : Sas-administrator

1008


What is a put statement?

1137


What are the data types does SAS contain?

1051