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


Please Help Members By Posting Answers For Below Questions

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

2719


what is hierarchy flattening? : Sas-di

719


How do you add a number to a macro variable? : sas-macro

638


What does proc print, and proc contents are used for?

705


Describe a time when you were really stuck on a problem and how you solved it?

2287






explain about data integrator metadata reports? : Sas-di

658


name some data transformation used in sas di? : Sas-di

638


Assuming {et} is randomly drawn from N(0,1) and e0 = 0, generate 200 observations of xt = et − 0.5e(t−1) and draw a line graph of xt.

1558


i want for interview question & answer plz it need immediate send t my mail raviprakashmot@gmal.cm

2004


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

656


what are some differences between proc summary and proc means? : Sas programming

610


Differentiate between ceil and floor functions.

768


what is data governance? : Sas-di

703


For what purpose would you use the RETAIN statement?

1151


Enlist the syntax rules followed in sas statements.

712