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


how to assign a macro value to a variable?

Answers were Sorted based on User's Feedback



how to assign a macro value to a variable?..

Answer / guest

by symget function;

SYNTAX:
variable=SYMGET(macro variable);

Is This Answer Correct ?    10 Yes 4 No

how to assign a macro value to a variable?..

Answer / ganesh k

if it is a Char then Variable="&MacroVar.";
if it is a Numaric then Variable=%eval(&MacroVar.) or %
sysevalf(&MacroVar.);

Is This Answer Correct ?    5 Yes 0 No

how to assign a macro value to a variable?..

Answer / sr

to assign macro value means it already created then

variable=symget(macro var);

variable will get value of that macro variable

Is This Answer Correct ?    3 Yes 1 No

how to assign a macro value to a variable?..

Answer / radhiv kumar sure

8 TO 9 TYPES WE CAN ASSIGN THE MACRO VALUE TO A VARIABLE.


CALL SYMPUT
%LET
SYMGET

Is This Answer Correct ?    2 Yes 2 No

how to assign a macro value to a variable?..

Answer / manna

data x;
%let a=01jan1960;
b=symget("a");
run;
IT IS Tested

Is This Answer Correct ?    0 Yes 0 No

how to assign a macro value to a variable?..

Answer / saritha

%let variable=value;
like
%let city='hyd';

Is This Answer Correct ?    2 Yes 7 No

how to assign a macro value to a variable?..

Answer / cool dude

Creating a Macro.

%Let a='City';

Assigning the macro value of a (which is 'City') to variable.

Data _null_;
b=&a;
put b= ;
run;

Is This Answer Correct ?    0 Yes 6 No

how to assign a macro value to a variable?..

Answer / srinivas,korasavada

and also we can assign like

%let variable=value;
means the value is save in that variable

Is This Answer Correct ?    3 Yes 10 No

Post New Answer

More SAS Interview Questions

Are you familiar with special input delimiters How are they used?

3 Answers  


what is option year cuttoff in sas

2 Answers   L&T,


what is AE onset date and what is RDS?

4 Answers   Accenture,


What is univariate n where it can be used n how...?

2 Answers  


What does error:1 mean?

8 Answers   Accenture,


What is the purpose of trailing @ and @@? How do you use them?

0 Answers  


is QUALCOMM using SAS ?

1 Answers  


What is the difference between nodupkey and nodup options?

0 Answers  


why is sas data integration studio important? : Sas-di

0 Answers  


explain the key concept of sas? : Sas-administrator

0 Answers  


Does SAS ?Translate? (compile) or does it ?Interpret?? Explain.

10 Answers  


How you are maintaining sas programmes in your company...any specific version control software you are using? If so, tell me the name?

0 Answers   Accenture,


Categories