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 is SAS? What are the functions does it performs?

1246


What are the differences between proc means and proc summary?

1195


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?

1207


What is the purpose of _character_ and _numeric_?

1108


How do you connect the desktop application to metadata server? : sas-grid-administration

1147


What would be the value of month at the end of data step execution and how many observations would be there?

1232


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

2288


Can you execute macro within another macro? If so, how would sas know where the current macro ended and the new one began? : sas-macro

1262


I need level 2 to 5 sas using companies in india

2436


Give e an example of..

2138


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

1132


What is the difference between proportion and average?

3405


What are the 3 components in sas programming?

1238


What are the new features included in the new version of SAS Programming Language?

1251


How would you identify a macro variable? : sas-macro

1064