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
How we can call macros with in data step? : sas-macro
Mention few capabilities of sas framework.
Enlist the functions performed by sas.
Explain what Proc glm does?
What does the trace option do?
What is the command used to find missing values?
If you were told to create many records from one record, show how you would do this using array and with proc transpose?
what is slowly changing dimension? : Sas-di
How do you define proc in sas? : sas-grid-administration
Given an unsorted data set, how to read the last observation to a new data set?
What can be the size of largest dataset in SAS?
Hi, If anyone has base SAS certification dumps, please share.
What is the order of application for output data set options, input data set options and SAS statements?
List out some key concept of SAS
Can you execute a macro within a macro? Describe. : sas-macro