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

What can be the size of largest dataset in SAS?

1275


how do you want missing values handled? : Sas programming

1010


How would you code a macro statement to produce information on the sas log? This statement can be coded anywhere? : sas-macro

1098


explain the difference between alternate key, business key, foreign key, generated key, primary key, retained key and surrogate key ? : Sas-di

1140


if the Id has more then two transcatiion then show the first observation, IF Id has only two observation then It show both the observation

1657


Mention the difference between ceil and floor functions in sas?

1207


What are the functions which are used for character handling functions?

1189


what is sas enterprise intelligence architecture? : Sas-bi

1018


What is the use of %include statement?

1102


How do you specify the number of iterations and specific condition within a single do loop?

1152


What will calendar procedure do?

1114


What is the sas data set? : sas-grid-administration

1027


What do the put and input function do?

1107


how does sas handle missing values in functions? : Sas programming

1280


Differentiate between ceil and floor functions.

1197