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 ways to do a “table lookup” in sas?

0 Answers  


how to extract data from SAP servers? Is like oracle servers or any other methods to extract please reply me.

1 Answers  


i want for interview question & answer plz it need immediate send t my mail raviprakashmot@gmal.cm

0 Answers   SAS,


How to read multiple excel sheets from a single excel file at once????

7 Answers   HCL, Verinon Technology Solutions,


What system options would you use to help debug a macro? : sas-macro

0 Answers  


AE datasets names? how many types?

0 Answers   Accenture,


explain what is data set in sas? : Sas-administrator

0 Answers  


Difference between SAS STATA & SPSS?

0 Answers  


Difference between nodup and nodupkey options?

0 Answers  


differnce between 8.2 and 9.1.3

1 Answers  


Identify statements whose placement in the DATA step is critical.

6 Answers   Accenture, Labasol,


What would be the value of month at the end of data step execution and how many observations would be there?

0 Answers  


Categories