Answer Posted / saurabh gupta
It's a best practice not to hardcode values in code until
or unless it's not very necessary. Always try to use
dynamic variables in your code it will increase the
felxibility of the code.
Ex let say you have to run one of your code every year and
one of your condition needs a date which is begning of the
year and you hardcoded your value like this
%Let YBEG = '2007-01-01'
Then every year when you have to run this code you have to
change the date but if you use daynamic variable it will
resolve automatically.
ex YBEG = Y_BEG_0.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
which features do you use to check the data validations and errors? : Sas-administrator
If you use a symput in a data step, when and where can you use the macro variable? : sas-macro
what has been your most common programming mistake? : Sas programming
What are the limitations for memory allocation for SAS variables
What are the 3 components in sas programming?
What was the last computer book you purchased? Why?
How would you identify a macro variable?
what type of graphs we will create(for 2+years candidates)?
Explain the special input delimiters used in sas programming.
What is the difference between proportion and average?
How to import multiple xls files into sas. Out of those files, how to get different values from a single variable and how to find number of rows per value type? We can do this using group by for one xls file with proc sql. Was wondering how I can achieve this for multiple files at the same time. Any ideas?
Hi, If anyone has base SAS certification dumps, please share.
Do you need to know if there are any missing values?
What is the length assigned to the target variable by the scan function?
What is data _null_?