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 the use of the %include statement?
Enlist the syntax rules followed in sas statements.
What do you code to create a macro? : sas-macro
Do you need to rearrange the order of the data for the report?
What are the ways to do a “table lookup” in sas?
it will become easy if uuu provide website linkssss and list of consultanciessssss
How can I remove header from output data set?
how are numeric and character missing values represented internally? : Sas programming
Name validation tools used in SAS
Mention how to limit decimal places for the variable using proc means?
What is the role of unrestrictive users? : sas-grid-administration
for whom is sas data integration studio designed? : Sas-di
What are the features of base sas system?
Give some ways by which you can define the variables to produce the summary report (using proc report)?
What is Linear Regression?