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 abc1;
set qqq end=a;
if _n_=1 or a=1;
proc print data=abc1;
run;

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the data types does SAS contain?

1120


which date function advances a date, time or datetime value by a given interval? : Sas programming

1058


How do you convert basic cube to transaction cube and transaction cube to basic cube?

2239


What is the differnce between SDTM 3.1.2 to 3.1.1 version

5077


if the Id has more then two transcatiion then show the first observation, IF Id has only two observation then It show both the observation

1620


What is maximum number of rows and cols can be handled in SAS?

1593


Which statement does not perform automatic conversions in comparisons?

1793


what is study design in while working with SAS? what are screening variables in SAS?

2246


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

1136


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

1288


How would you identify a macro variable?

1097


What can be the size of largest dataset in SAS?

1235


What are the features of base sas system?

1073


What do the SAS log messages "numeric values have been converted to character" mean?

1386


Describe the ways in which you can create macro variables?

1197