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 / abhilash

Use symgetfunction to resolve a macro variable with in same
data step while creating macro variable using call symput.


DATA test;
SET ABC;
IF TDATE='18APR2008'D THEN
CALL SYMPUT('A2',AVG);
ELSE IF TDATE='21APR2008'D THEN
CALL SYMPUT('B2',AVG);
diff = symget('a2') - symget('b2');
RUN;

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name validation tools used in SAS

1220


how does sas handle missing values in assignment statements? : Sas programming

1072


I have a dataset concat having variable a b & c. How to rename a b to e & f?

1083


Mention what are the data types does SAS contain?

1196


What are the parameters of scan function?

1224


What is proc sort?

1313


Explain what is data step?

1242


how will you location sas platform applications available from web browser? : Sas-bi

1122


What is the difference between %put and symbolgen? : sas-macro

1301


what is the use of proc contents and proc print in sas? : Sas-administrator

1108


How will you use the WHO Drug Dictionary for Reporting Clinical Trials?

2396


What are the difference between sas functions and procedures?

1203


How to create list output for cross-tabulations in proc freq?

1154


For a user to have access to a standard workspace server, is internal authentication alone is sufficient? : sas-grid-administration

1063


Mention how to limit decimal places for the variable using proc means?

1176