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 / nagesh sriram

Hi,
I am think that the difference between the first and last
records value?

data _null_;
set abc end=last;
retain first;
if _n_=1 then first=avg;
if last=1 then do;
diff=first - avg;
put 'The difference is =' diff;
stop;
end;
run;

here _n_=1 is hold the first record in the abc dataset.
Last=1 means is hold the last record in the dataset.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the implications?

1720


What are pdv and it functions?

1155


Explain the special input delimiters used in sas programming.

1012


what is sas application server, database server, sas olap server and sas metadata server? : Sas-di

1021


how the sas basic syntax style described? : Sas-administrator

1024


what is information maps?

2230


describe about metadata object? : Sas-di

1078


How to create a permanent sas data set?

1246


which date functions advances a date time or date/time value by a given interval? : Sas programming

970


What is the purpose of _character_ and _numeric_?

1068


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

1100


what are sas bi dashboard components? : Sas-bi

1174


Explain the use of proc print and proc contents?

967


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

1076


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

1025