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
describe about metadata object? : Sas-di
What is the function of output statement in a SAS Program?
describe the interaction table in sas di? : Sas-di
What system options would you use to help debug a macro? : sas-macro
what is hash files in sas and why we are using this one in sas?
what are the scrubbing procedures in sas? : Sas programming
If you could design your ideal job, what would it look like?
How can you create a macro variable with in data step? : sas-macro
in the flow of data step processing, what is the first action in a typical data step? : Sas programming
What are the parameters of scan function?
Have you ever used the SAS Debugger?
how many types of prompts are there? : Sas-bi
What is the difference between one to one merge and match merge? Give an example.
What would be the value of month at the end of data step execution and how many observations would be there?
What is a pdv and what are its functions?