how we can create optional or required parameters in SAS
macro...
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / sheetal
In macro definition you can create required parameters and
using %let or call symput you can create optional
parameters in sas macro
| Is This Answer Correct ? | 2 Yes | 9 No |
What is a post baseline?
What is the difference between nodup and nodupkey options?
20 Answers iFlex, Makro, Talwar,
What is LAG function?How is it used? can any one explain
3 Answers TRE, Verinon Technology Solutions,
what are the differences between proc report and proc tabulate?
What data sets do you need to produce the report?
what is data governance? : Sas-di
what are the validation tools in sas?
Approximately what date is represented by SAS date value of 730
what are methods to identify duplicate observations?
explain about data integrator metadata reports? : Sas-di
what type of reports you are generating in your company...???
2 Answers GSK GlaxoSmithKline,
What are common programming errors committed in sas