how to assign a macro value to a variable?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is sas application server? : Sas-di

720


How will you generate test data with no input data?

819


If you could design your ideal job, what would it look like?

2672


Hi,by usining ptf how we have to combine (likr merge)10 datasets at a time in the oracle database(and write a macro code also)?Like this i have a douts a lot if you dont mind may please send one text mail for me(madhusudhanap16@gmail.com)?

1451


What are the scrubbing procedures in sas?

762


What is program data vector (pdv)?

843


What is the SAS data set?

886


What are the difference between sas functions and procedures?

840


Describe the function and utility of the most difficult SAS macro that you have written?

2259


How would you define the end of a macro?

879


How to include or exclude specific variables in a data set?

868


what is sas database server? : Sas-di

809


Differences between where and if statement?

784


Mention what is PROC in SAS?

813


what are some good sas programming practices for processing very large data sets? : Sas programming

715