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 |
Tell me more about the parameters in macro? : sas-macro
how can you sort the dataset having millions of OBS(instead of sort procedure?
explain the key concept of sas? : Sas-administrator
What is the purpose of using the N=PS option?
how the sas basic syntax style described? : Sas-administrator
What are the implications?
What are the features of SAS?
What is the difference between %put and symbolgen? : sas-macro
What SAS statements would you code to read an external raw data file to a DATA step?
What are the best sas programming practices for handling very large datasets? : sas-grid-administration
sas implementing companies in pune implementing clinical projects if anyone knows plz send ans immediately
i have multiple .csv files in a unix directory. every file is having variable names as header.even for empty file also. suppose take 3 files a.csv b.csv c.csv a.csv contains data as name;age,salary; raja;34;4000; ravi;33;5000; kumar;25;3000; b.csv contains data as name;age,salary; ajay;40;4500; and c.csv contains name;age,salary; (only headers) Now i want to import and append all these files in to a single dataset. i tried infile statement with *.csv to import all at a time. but i m not getting correct data. please help me . its urgent. thank you in advance