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 |
How do you delete duplicate observations in sas?
What is maximum storage capability of SAS?
what are methods to identify duplicate observations?
what is pdv? how it is related to input buffer in sas?
what is the difference between %put and symbolgen?
what is the formula to measure Baseline
Explain the use of proc gplot? : sas-grid-administration
1.What is the difference between _NULL_ , _ALL_, and _N_? 2.What are the uses of _NULL_ using in Data Steps? Can we _NULL_ in Proc Steps also? 3.How do call the macro variable in Data Steps? 4.How to construct Pivot tables in Excel Using SAS?
What is the difference between the proc sql and data step?
Code the MEANS to produce output to be used later.
Explain substr function?
Intern stastical programmer written test