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

Shortest answer: Copy the dataset and create a new field using difn function on avg where n=3 as shown below.

data abc2;
set abc;
diff = dif3(avg);
run;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between nodupkey and nodup options?

1084


what other sas products have you used and consider yourself proficient in using? : Sas programming

1168


Explain the use of proc gplot? : sas-grid-administration

1047


How can I remove header from output data set?

2666


What are the ways in which macro variables can be created in sas programming?

1175


Are you sensitive to code walk-throughs peer review or QC review?

3203


Which command is used to save logs in the external file?

1156


What is maximum number of rows and cols can be handled in SAS?

1678


what is the limit of the number of the rows and columns available in the worksheet? : Sas-bi

1143


how could you generate test data with no input data? : Sas programming

1238


List out some key concept of SAS

1216


what is the basic structure sas administrator? : Sas-administrator

1056


how to change the execute of macro

2386


Given an unsorted data set, how to read the last observation to a new data set?

1414


How you are maintaining sas programmes in your company...any specific version control software you are using? If so, tell me the name?

2178