Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 are the scrubbing procedures in sas?

0 Answers  


What is the significance of the ‘OF’ in X=SUM (OF a1-a4, a6, a9);?

8 Answers  


What is auto call macro and how to create a auto call macro? What is the use of it? How to use it in sas with macros? : sas-macro

0 Answers  


How do you define proc in sas? : sas-grid-administration

0 Answers  


What is a pdv and what are its functions?

0 Answers  


Do you use PROC REPORT or PROC TABULATE? Which do you prefer? Explain.

3 Answers  


what is the prob plot in clinical domain

1 Answers   TCS,


what is study design in while working with SAS? what are screening variables in SAS?

0 Answers   MSCR,


for report generation which one you used proc report or data_null_?

3 Answers   Accenture, Quintiles,


What techniques and/or PROCs do you use for tables?

4 Answers   Oracle,


Name any two sas spawners? : sas-grid-administration

0 Answers  


What does a PROC TRANSPOSE do?

8 Answers   Accenture,


Categories