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

DATA ABC;
INPUT TDATE DATE9. AVG;
CARDS;
18APR2008 150.00
19APR2008 167.00
20APR2008 123.00
21APR2008 145.00
;
RUN

HOW CAN I FIND THE DIFFERENCE BETWEEN AVG OF 18APR2008 ANF
21APR2008??

IF ANY ONE GETS IT PLS TRY TO POST IT.

Answer Posted / rajaanku11

The Above can be done in a single data step as
follows.Actually this is suggestable.


data _null_;
set abc;
retain z;
if tdate='18APR2008'D then
z=avg;
if tdate='21APR2008'D then
do;
diff=Z-avg;
put 'the difference=' diff;
stop;
end;
run;

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In SAS explain which statement does not perform automatic conversions in comparisons?

1317


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

2114


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

1001


How would you identify a macro variable?

1097


what is sas olap server? : Sas-di

1261


How to create a permanent sas data set?

1246


do you need to know if there are any missing values? : Sas programming

1066


Define run-group processing?

1047


What is PDV?

1162


what do you mean by data staging area? : Sas-di

1145


Explain how you can debug and test your SAS program?

1019


what are the component of range? : Sas-bi

1102


Which statement does not perform automatic conversions in comparisons?

1793


What are the different servers in sas? : sas-grid-administration

1061


what is sas application server? : Sas-di

1085