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 |
Which date function advances a date, time or datetime value by a given interval?
What is the difference between SAS Data step and SAS PROC SQL, and which is better?
What are the uses of sas?
what is incremental update ? is this possible in SAS OLAP CUBE STUDIO.
explain about data integrator metadata reports? : Sas-di
Do you know the features of sas?
Can you execute macro within another macro? If so, how would sas know where the current macro ended and the new one began? : sas-macro
How can sas program be validated?
What does proc print, and proc contents are used for?
For what purpose(s) would use the RETURN statement?
where will go the observations that were deleted by delete statement?
I Here clinical SAS training by Ramesh Azmeera is good. Is it confirm ?