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

This entry was posted in General. Bookmark the permalink. Post a comment or leave

4631


What do you know about sas data set?

1195


What are the difficulties u faced while doing vital signs table or dataset?

2452


name some data transformation used in sas di? : Sas-di

1037


What is PDV?

1209


: and & modifiers.

1453


What will calendar procedure do?

1116


Explain the difference between nodup and nodupkey options?

1091


How to create list output for cross-tabulations in proc freq?

1154


for report generation which one you used proc report or data_null_?

7947


what do the pad and dim functions do? : Sas programming

1078


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

1197


what versions of sas have you used (on which platforms)? : Sas programming

1134


Intern stastical programmer written test

792


What sas features do you use to check errors and data validation?

1270