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...

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is factor analysis?

1073


What is data _null_?

1074


what is factor analysis? : Sas-administrator

1025


Mention sas system options to debug sas macros.

1133


What are the data types does SAS contain?

1051


describe about physical data integration? : Sas-di

991


I need level 2 to 5 sas using companies in india

2324


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

930


Explain why double trailing @@ is used in input statement?

1005


What is the basic syntax of a sas program?

1138


How can you create a macro variable with in data step? : sas-macro

980


Mention the category in which sas informats are placed?

975


Describe the ways in which you can create macro variables? : sas-macro

1009


Difference between SAS STATA & SPSS?

1054


what do the sas log messages "numeric values have been converted to character" mean? What are the implications? : Sas programming

1175