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 |
Do you need to know if there are any missing values?
How many ways to overcome a missing values???
Identify statements whose placement in the DATA step is critical.
what other SAS features do you use for error trapping and data validation?
i want to upload titles and footnotes to excel file?how it is possible?
Baseline definition in your study
3 Answers Accenture, Quintiles,
What is the basic structure of the SAS base program?
How to write duplicate records into a separate dataset using sort?
What is criteria for adverse events and treatment-emergent adverse events?
Can you suggest us materials for sdtm mapping?
What are the default statistics for means procedure?
whenever we using the merging through data set merging ,we can get note in log like this "MERGE STATEMENT HAS MORE THAN ONE ONE DATASET BY REPEATED BY VAIABLES" but the output has come in good manner,whenever in in sql(full join) we can get cartion product.so How do overcome this problem in sql?