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_?
% let A=3+4 what is result
What are symbol tables?Differemce between Local N Global Symbol tables.....
For what purpose would you use the RETAIN statement?
What do you understand by the term Normal Distribution?
1 new york 7,262,700 2 los angeles 3,259,340 3 philadelphia 1,642,900 how to read the above data using input statement consider the above data is in txt format externally u have to use infile and input statement.
What are some problems you might encounter in processing missing values? In Data steps? Arithmetic? Comparisons? Functions? Classifying data?
Code a PROC SORT on a data set containing State, District and County as the primary variables, along with several numeric variables.
Difference Between Scan and Substr
Mention how to limit decimal places for the variable using proc means?
Name any two sas spawners? : sas-grid-administration
what is pdv? how it is related to input buffer in sas?