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 the pound sign used for the DATA _NULL_?
what is chi-square test? have you used that?
1 Answers Accenture, Quintiles,
do you prefer proc report or proc tabulate? Why? : Sas programming
what is sas business intelligence? : Sas-bi
Can you explain the process of calendar?
How to convert .xls file into CSV format?
how we can call macros with in data step?
How do you download a flat file from Mainframe to your local PC using SAS?
How would you define the end of a macro?
which date functions advances a date time or date/time value by a given interval? : Sas programming
explain the concepts and capabilities of business object? : Sas-bi
Does SAS ?Translate? (compile) or does it ?Interpret?? Explain.