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
what are validation tools that are used in sas? : Sas-administrator
How would you identify a macro variable?
What is the sas data set? : sas-grid-administration
How do you control the number of observations and/or variables read or written?
what can you learn from the sas log when debugging? : Sas programming
Can you explain the process of calendar?
what is the one statement to set the criteria of data that can be coded in any step? : Sas programming
What do you know about symput and symget?
what do the pad and dim functions do? : Sas programming
what is sas application server, database server, sas olap server and sas metadata server? : Sas-di
how would you determine the number of missing or nonmissing values in computations? : Sas programming
This entry was posted in General. Bookmark the permalink. Post a comment or leave
What is interleaving in SAS?
Explain append procedure?
How would you determine the number of missing or nonmissing values in computations?