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

What is the pound sign used for the DATA _NULL_?

14 Answers  


what is chi-square test? have you used that?

1 Answers   Accenture, Quintiles,


do you prefer proc report or proc tabulate? Why? : Sas programming

1 Answers  


what is sas business intelligence? : Sas-bi

1 Answers  


Can you explain the process of calendar?

1 Answers  


How to convert .xls file into CSV format?

6 Answers   Quintiles,


how we can call macros with in data step?

17 Answers   Allianz, ManPower,


How do you download a flat file from Mainframe to your local PC using SAS?

3 Answers  


How would you define the end of a macro?

1 Answers  


which date functions advances a date time or date/time value by a given interval? : Sas programming

1 Answers  


explain the concepts and capabilities of business object? : Sas-bi

1 Answers  


Does SAS ?Translate? (compile) or does it ?Interpret?? Explain.

10 Answers  


Categories