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 / alok karan

data qq;
do i=1 to n by n-1;
set qqq point=i nobs=n ;
output;
end;
stop;
proc print data=qq;
run;

/*Above is more efficient program to know the first and last observation */

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of trailing @ and @@? How do you use them?

984


Approximately what date is represented by the SAS date value of 730?

1162


How do you specify the number of iterations and specific condition within a single do loop?

1052


what is sas data set?

1059


How to create list output for cross-tabulations in proc freq?

1064


what are validation tools that are used in sas? : Sas-administrator

1004


How can sas program be validated?

975


Assuming {et} is randomly drawn from N(0,1) and e0 = 0, generate 200 observations of xt = et − 0.5e(t−1) and draw a line graph of xt.

1836


What is the function of Stop statement in a SAS Program?

1093


What is substr function?

1118


How do you use the do loop if you don’t know how many times you should execute the do loop?

1215


what do the mod and int function do? What do the pad and dim functions do? : Sas programming

1102


what r the job openings SAS for fresher graduates !

2391


how many types prompting framework can be broken down to? : Sas-bi

1035


What are the special input delimiters used in SAS?

1104