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 / singh.naveen409

proc sort data=qqq;
by name;
run;
options mlogic;
data www;
set qqq;
by name;
if first.name then serial=1
run;
data wwq (drop=serial);
set www;
if serial ne '1';
run;

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you explain the process of calendar?

650


How are numeric and character missing values represented internally?

1150


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

645


how will you locate the sas platform applications? : Sas-bi

590


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

745






what r the job openings SAS for fresher graduates !

2021


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

658


What are the different versions of sas that you have used until now? : sas-grid-administration

744


what is snowflake schema? : Sas-di

707


What are the parameters of scan function?

631


Give some ways by which you can define the variables to produce the summary report (using proc report)?

607


hi tell be about pfizer? how to compare the work with other companies ? please tell me how to login and work also?

1673


What is the difference between proportion and average?

2766


how many display types available in sas bi dashboard? : Sas-bi

646


Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?

1477