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

How we can call macros with in data step? : sas-macro

1119


Mention few capabilities of sas framework.

1174


Enlist the functions performed by sas.

1118


Explain what Proc glm does?

1205


What does the trace option do?

1103


What is the command used to find missing values?

1097


If you were told to create many records from one record, show how you would do this using array and with proc transpose?

1487


what is slowly changing dimension? : Sas-di

1124


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

1080


Given an unsorted data set, how to read the last observation to a new data set?

1347


What can be the size of largest dataset in SAS?

1222


Hi, If anyone has base SAS certification dumps, please share.

1862


What is the order of application for output data set options, input data set options and SAS statements?

1551


List out some key concept of SAS

1120


Can you execute a macro within a macro? Describe. : sas-macro

1107