how we can create optional or required parameters in SAS
macro...
Answer Posted / ak
%macro Mtest (mvar);
here its required parameter.
----------------------------------------------
%macro Mtest(mvar1=abc);
.....
sas statements using macro variable mvar1
here mvar1 can be optional while calling macro Mtest
if parameter value is not send then it takes default value
as abc
.....
%mend;
| Is This Answer Correct ? | 18 Yes | 1 No |
Post New Answer View All Answers
What is factor analysis?
What is data _null_?
what is factor analysis? : Sas-administrator
Mention sas system options to debug sas macros.
What are the data types does SAS contain?
describe about physical data integration? : Sas-di
I need level 2 to 5 sas using companies in india
do you prefer proc report or proc tabulate? Why? : Sas programming
Explain why double trailing @@ is used in input statement?
What is the basic syntax of a sas program?
How can you create a macro variable with in data step? : sas-macro
Mention the category in which sas informats are placed?
Describe the ways in which you can create macro variables? : sas-macro
Difference between SAS STATA & SPSS?
what do the sas log messages "numeric values have been converted to character" mean? What are the implications? : Sas programming