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...

If you need the value of a variable rather than the
variable itself what would you use to load the value to a
macro variable?

Answer Posted / damwal

Use CALL SYMPUT routine.
Below I show how to assign the value of 3rd observation of
variable name (94) to a macro variable named "macrovar1"

data test;
input name @@;
datalines;
1 21 94 444 5
;

data _null_;
set test (firstobs=3 obs=3);
call symput("macrovar1",name);
run;

%put &macrovar1; /*display*/

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create an external dataset with sas code?

1161


Give an example where SAS fails to convert character value to numeric value automatically?

1092


How substr function works in sas?

1224


what techniques and/or procs do you use for tables? : Sas programming

1066


Mention the difference between ceil and floor functions in sas?

1157


Are you involved in writing the inferential analysis plan? Tables specifications?

3963


Tell e how how dealt with..

2253


what is sas olap server? : Sas-di

1258


Do we follow ADAM in analysis dataset development?How? Usually which version? Why is it necessary?

2413


What is the purpose of _character_ and _numeric_?

1068


What is factor analysis?

1139


Describe crosslist option in tables statement?

1224


what is proc Index? and what is proc document?

2723


What are all the problems you faced while validating tables and reports?

3474


Hi, Does anybody has lastest SAS certification(base, adv., clinical)dumps,if anybody has please email me at mailtorajani76@gmail.com. Thanks

2255