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 other sas products have you used and consider yourself proficient in using? : Sas programming

0 Answers  


What is data _null_?

0 Answers  


How you can read the variables that you need?

0 Answers  


what can you learn from the sas log when debugging? : Sas programming

0 Answers  


what is option year cuttoff in sas

2 Answers   L&T,






What are symget and symput? : sas-macro

0 Answers  


Give some ways by which you can define the variables to produce the summary report (using proc report)?

0 Answers  


what is the use of proc sql? : Sas programming

0 Answers  


how do you read binary data in sas?

3 Answers   Satyam,


How do you add a number to a macro variable?

2 Answers  


· What are some good SAS programming practices for processing very large data sets?

6 Answers   Quintiles,


What is the role of sas grid administrator? : sas-grid-administration

0 Answers  






Categories