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 is SAS?

984


Explain proc sort?

1027


Is the physical structure of the data set in the same orientation as the report? Do you need to reshape the data sets? What method should you use to reshape the data–DATA steps,PROC TRANSPOSE,output data set from a procedure?

2178


I need level 2 to 5 sas using companies in india

2327


what are all the reports you generated in your recent project?

2128


This entry was posted in General. Bookmark the permalink. Post a comment or leave

4527


Give some examples where proc report’s defaults are different than proc print’s defaults?

1010


List out some key concept of SAS

1042


What are the difference between sas functions and procedures?

1068


Tell me about % include and % eval? : sas-macro

1096


What does the trace option do?

1054


Describe the ways in which you can create macro variables? : sas-macro

1011


How to limit decimal places for variable using proc means?

1043


how to remove duplicates using proc sql?

1090


What is the order of application for output data set options, input data set options and SAS statements?

1503