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

Difference between informat and format?

1145


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

1034


If you have a dataset that contains 100 variables, but you need only five of those, what is the code to force SAS to use only those variables?

1210


what are input dataset and output dataset options? : Sas programming

1174


Explain the use of proc gplot? : sas-grid-administration

1046


How to sort in descending order?

1301


what is the effect of the options statement errors=1? : Sas programming

1106


explain what is data set in sas? : Sas-administrator

1039


what are sas/access and sas/connect? : Sas programming

1039


what are the best practices to process the large data sets in sas programming? : Sas-administrator

1078


What is the difference between reading data from an external file and reading data from an existing data set?

1232


Mention what is SAS data set?

1178


What is a put statement?

1274


How would you code a merge that will write the matches of both to one data set, the non-matches from the left-most data?

1161


Explain the difference between nodup and nodupkey options?

1090