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 is the difference between nodupkey and nodup options?
what other sas products have you used and consider yourself proficient in using? : Sas programming
Explain the use of proc gplot? : sas-grid-administration
How can I remove header from output data set?
What are the ways in which macro variables can be created in sas programming?
Are you sensitive to code walk-throughs peer review or QC review?
Which command is used to save logs in the external file?
What is maximum number of rows and cols can be handled in SAS?
what is the limit of the number of the rows and columns available in the worksheet? : Sas-bi
how could you generate test data with no input data? : Sas programming
List out some key concept of SAS
what is the basic structure sas administrator? : Sas-administrator
how to change the execute of macro
Given an unsorted data set, how to read the last observation to a new data set?
How you are maintaining sas programmes in your company...any specific version control software you are using? If so, tell me the name?