how we can create optional or required parameters in SAS
macro...
Answers were Sorted based on User's Feedback
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 |
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 |
what is Enterprise Guide?what is the use of it?
what is snowflake schema? : Sas-di
how to shift the rows to cols? eg: i have like field1 field2 field3 10 20 20 this should be displayed as field1 10 field2 20 field3 30 (without the obs col) how do this?can i use transpose or tell me suitable way to do this?
what are some good sas programming practices for processing very large data sets? : Sas programming
How to read multiple excel sheets from a single excel file at once????
7 Answers HCL, Verinon Technology Solutions,
how do u validate sas program
what are the methods that you would employ to fine tune your SQL extract process using SAS/Access or Proc SQL?
Hot to suppress characters from a given string?
Hi, Does anybody has lastest SAS certification(base, adv., clinical)dumps,if anybody has please email me at mailtorajani76@gmail.com. Thanks
What are SAS/ACCESS and SAS/CONNECT?
Difference Between Scan and Substr
Why double trailing @@ is used in input statement?