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

how to assign a macro value to a variable?

8 Answers   CitiGroup,


Diff between proc sql merge and join?

1 Answers   HSBC, Sristek,


How does Mr.Lanka Srinivas teach SAS? Are his accomplishments real? What are the future prospects for SAS?

1 Answers   Student,


explain about various caches available in data integrator? : Sas-di

0 Answers  


How would you code a merge that will write the matches of both to one data set, the non-matches from the left-most data?

0 Answers  


What report output formats can you generate using SAS?

3 Answers   Accenture,


what is the primary variable in your study?

3 Answers   Accenture,


At compile time when a SAS data set is read, what items are created?

5 Answers  


What is the Program Data Vector (PDV) and What are its functions?

9 Answers  


% let A=3+4 what is result

4 Answers   Satyam,


I use NOCUM/NOPERCENT option in the tables statement like this Proc freq data = deepak; tables x y /nocum nopercent; run; Here I get nopercent and nocum in the output only for variables x and y. How do i do it for all variables? Deepak

1 Answers  


in the flow of data step processing, what is the first action in a typical data step? : Sas programming

0 Answers  


Categories