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

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

1107


How you can read the variables that you need?

1076


Explain the difference between informat and format with an example.

1121


How to include or exclude specific variables in a data set?

1067


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

1085


what is factor analysis? : Sas-administrator

1032


Mention what is SAS data set?

1097


what is sas database server? : Sas-di

1058


what are the considerations when picking a SAS/STAT procedure?

3330


Which command is used to perform sorting in sas program?

990


In proc transpose and data step with arrays which one you pick?

3051


What is the difference between match merge and one to one merge?

1160


what is slowly changing dimension? : Sas-di

1072


If a variable contains letters or special characters, can it be numeric data type?

1164


Is the physical structure of the data set in the same orientation as the report? Do you need to reshape the data sets? What method should you use to reshape the data–DATA steps,PROC TRANSPOSE,output data set from a procedure?

2190