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...

Hi, I have one dataset, could you please ans for this.
id amount paid_amount
1 700 400
2 900 250
3 300 300
a 400 250
b 500 320
c 800 650
x 200 190
y 900 250
z 300 180

i want create new dataset having id and paid_amount who are
paid high amount comparing amount.
ex: 1d paid_amount
3 300
c 650
x 190

Answer Posted / ashish

data test1;
set test;
pct=(paid_amount/amount)*100;
run;

proc sort data=test1 out=test2;
by DESCENDING pct;

data test3;
set test2(obs=3);
run;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are you involved in writing the inferential analysis plan? Tables specifications?

3963


how can you put a "trace" in your program? : Sas programming

1068


How to create an external dataset with sas code?

1162


what are the scrubbing procedures in sas? : Sas programming

1286


I have a dataset concat having a variable a b & c. How to rename a b to e & f?

1288


Intern stastical programmer written test

760


What are the differences between proc means and proc summary?

1145


Describe the function and untility of the most difficult SAS macro that you have written.

2109


Mention what are the data types does SAS contain?

1153


What is proc sort?

1228


what are input dataset and output dataset options? : Sas programming

1106


If a variable contains only numbers, can it be a character data type?

1088


Name types of category in which SAS Informats are placed?

1153


what are the best practices to process the large data sets in sas programming? : Sas-administrator

1027


How does the internal authentication work in sas? : sas-grid-administration

1123