how we can create optional or required parameters in SAS
macro...

Answers were Sorted based on User's Feedback



how we can create optional or required parameters in SAS macro.....

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

how we can create optional or required parameters in SAS macro.....

Answer / shiri

using keyword and positional parameters.

Is This Answer Correct ?    9 Yes 3 No

how we can create optional or required parameters in SAS macro.....

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 we can create optional or required parameters in SAS macro.....

Answer / rajeev

using %let statement

Is This Answer Correct ?    4 Yes 14 No

how we can create optional or required parameters in SAS macro.....

Answer / ravid

By using macros we can crate optional or required parameters

Is This Answer Correct ?    4 Yes 14 No

Post New Answer



More SAS Interview Questions

describe how to adjust the performance of data integrator? : Sas-di

0 Answers  


calculate the sum of value using only DATA STEP. data count_; input year name $ value; cards; 2006 xxx 10 2007 yyy 12 2006 xxx 20 2008 yyy 15 2007 xxx 15 ; out put should be like this year name T_value ----------------------- 2006 xxx 30 2007 xxx 15 2007 yyy 12 2008 xxx 15

6 Answers  


what is broad cast agent? : Sas-bi

0 Answers  


What are TEAEs

2 Answers   Quintiles, Accenture,


Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?

0 Answers  






what are the component of range? : Sas-bi

0 Answers  


What is the difference between match merge and one to one merge?

0 Answers  


How necessary is it to be creative in your work?

0 Answers   Oracle,


What is the purpose of the trailing @? The @@? How would you use them?

10 Answers   Accenture,


Explain what is data step?

0 Answers  


What is criteria for adverse events and treatment-emergent adverse events?

2 Answers   Accenture,


What are the difference between ceil and floor functions in sas?

0 Answers  






Categories