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 the use of the %include statement?

1112


Enlist the syntax rules followed in sas statements.

1047


What do you code to create a macro? : sas-macro

1088


Do you need to rearrange the order of the data for the report?

2276


What are the ways to do a “table lookup” in sas?

991


it will become easy if uuu provide website linkssss and list of consultanciessssss

1934


How can I remove header from output data set?

2586


how are numeric and character missing values represented internally? : Sas programming

1105


Name validation tools used in SAS

1129


Mention how to limit decimal places for the variable using proc means?

1084


What is the role of unrestrictive users? : sas-grid-administration

974


for whom is sas data integration studio designed? : Sas-di

967


What are the features of base sas system?

1029


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

1047


What is Linear Regression?

1124