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 / pavan

data inter7;
input id $1-2 sal1 6-9 sal2 13-16;
cards;
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
;
run;

data inter8 ;
set inter7;
if sal1>=sal2 then sal=sal1;
if sal2>=sal1 then sal=sal2;
run;

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the benefits of data integration? : Sas-di

1028


How would you include common or reuse to be processed along with your statements?

2320


what is the effect of the options statement errors=1? : Sas programming

1003


If you could design your ideal job, what would it look like?

2873


How would you identify a macro variable? : sas-macro

969


What function CATX syntax does?

1168


where to use sas business intelligence? : Sas-bi

1008


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

1276


Explain proc univariate?

972


what is data integration? : Sas-di

1065


what are _numeric_ and _character_ and what do they do? : Sas programming

1108


explain the use of % includes a statement in sas? : Sas-administrator

947


how do you test for missing values? : Sas programming

1004


What is the difference between where and if statement?

1063


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

999