Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What do you understand by the term Normal Distribution?

1043


Which command is used to perform sorting in sas program?

1095


What do the SAS log messages "numeric values have been converted to character" mean?

1432


What is the maximum length of the macro variable? : sas-macro

1157


what is the difference between nodup and nodupkey options? : Sas programming

1272


What is the basic syntax of a sas program?

1264


What does P-value signify about the statistical data?

1402


how does sas handle missing values in a merge? : Sas programming

1103


What are the differences between sum function and using “+” operator?

1159


What is the difference between class statement and by statement in proc means?

1396


What is maximum number of rows and cols can be handled in SAS?

1673


what is the difference between: x=a+b+c+d; and x=sum (of a, b, c ,d);? : Sas programming

1186


How would you identify a macro variable? : sas-macro

1064


List out some key concept of SAS

1216


for what purpose would you use the retain statement? : Sas programming

1147