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 are the scrubbing procedures in sas?
What is the significance of the ‘OF’ in X=SUM (OF a1-a4, a6, a9);?
What is auto call macro and how to create a auto call macro? What is the use of it? How to use it in sas with macros? : sas-macro
How do you define proc in sas? : sas-grid-administration
What is a pdv and what are its functions?
Do you use PROC REPORT or PROC TABULATE? Which do you prefer? Explain.
what is the prob plot in clinical domain
what is study design in while working with SAS? what are screening variables in SAS?
for report generation which one you used proc report or data_null_?
3 Answers Accenture, Quintiles,
What techniques and/or PROCs do you use for tables?
Name any two sas spawners? : sas-grid-administration
What does a PROC TRANSPOSE do?