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

How do you define proc in sas? : sas-grid-administration

1139


where are dashboard components are created and maintained? : Sas-bi

1061


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

1169


Explain the use of proc print and proc contents?

1018


What is the order of application for output data set options, input data set options and SAS statements?

1620


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

2269


Give e an example of..

2139


What are the difference between ceil and floor functions in sas?

1406


What are common programming errors committed in sas

1190


what are the types of interactive display types? : Sas-bi

1151


Tell me more about the parameters in macro? : sas-macro

1097


What is the difference between using drop = data set option in data statement and set statement?

1214


Differentiate between format and informat? : sas-grid-administration

1124


what is enterprise guide? What is the use of it? : Sas programming

1073


what are some problems you might encounter in processing missing values? In data steps? Arithmetic? Comparisons? Functions? Classifying data? : Sas programming

1296