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 / rajaanku11
Hi, pls modify slight changes to the above prog.
data _null_ ;
set abc;
if tdate='18APR2008'D then
call symput('x',avg);
if tdate='21APR2008'D then
call symput('y',avg);
run;
%put _user_;
data _null_;
z=&x-&y;
put 'the difference=' z;
run;
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
What do you understand by the term Normal Distribution?
Which command is used to perform sorting in sas program?
What do the SAS log messages "numeric values have been converted to character" mean?
What is the maximum length of the macro variable? : sas-macro
what is the difference between nodup and nodupkey options? : Sas programming
What is the basic syntax of a sas program?
What does P-value signify about the statistical data?
how does sas handle missing values in a merge? : Sas programming
What are the differences between sum function and using “+” operator?
What is the difference between class statement and by statement in proc means?
What is maximum number of rows and cols can be handled in SAS?
what is the difference between: x=a+b+c+d; and x=sum (of a, b, c ,d);? : Sas programming
How would you identify a macro variable? : sas-macro
List out some key concept of SAS
for what purpose would you use the retain statement? : Sas programming