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 are validation tools that are used in sas? : Sas-administrator

591


How would you identify a macro variable?

649


What is the sas data set? : sas-grid-administration

572


How do you control the number of observations and/or variables read or written?

747


what can you learn from the sas log when debugging? : Sas programming

607






Can you explain the process of calendar?

640


what is the one statement to set the criteria of data that can be coded in any step? : Sas programming

650


What do you know about symput and symget?

731


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

566


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

551


how would you determine the number of missing or nonmissing values in computations? : Sas programming

655


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

4034


What is interleaving in SAS?

673


Explain append procedure?

634


How would you determine the number of missing or nonmissing values in computations?

648