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

Given an unsorted data set, how to read the last observation to a new data set?

1286


explain the concepts and capabilities of business object? : Sas-bi

907


What are the different servers in sas? : sas-grid-administration

1006


What is the basic structure of the SAS base program?

1229


What are all the problems you faced while validating tables and reports?

3401


Explain proc sort?

1028


Which are the statements whose placement in the data step is critical?

1188


what is metadata? : Sas-bi

968


How will you react when, while consulting a SAS documentation manual to get an answer to a problem, someone says hey, I thought you were supposed to know all that stuff already, and not have to look it up in a book?

2401


how does sas handle missing values in functions? : Sas programming

1121


describe how to adjust the performance of data integrator? : Sas-di

945


Do you need to rearrange the order of the data for the report?

2252


What is SAS? What are the functions does it performs?

1138


Can you execute a macro within a macro? Describe. : sas-macro

1067


For clinical entire study how many tables will create approx?

1905