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

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

1083


what is treatment emergent events and treatment emregent adverse event

2409


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

1216


Are you sensitive to code walk-throughs peer review or QC review?

3148


What is factor analysis?

1141


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

2247


What is the difference between one to one merge and match merge? Give an example.

1072


For what purposes have you used sas macros? : sas-macro

1003


Have you ever used the SAS Debugger?

1768


how to create the AE dataset by using SDTMIG specifications and SAP plan by using UNIX platform?

2767


explain the main difference between the nodup and nodupkey options? : Sas-administrator

1170


What is the difference between the proc sql and data step?

1186


Explain bmdp procedure?

1048


Hi,by usining ptf how we have to combine (likr merge)10 datasets at a time in the oracle database(and write a macro code also)?Like this i have a douts a lot if you dont mind may please send one text mail for me(madhusudhanap16@gmail.com)?

1695


What is the difference between order and group variable in proc report?

1442