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
how to change the execute of macro
what are input dataset and output dataset options? : Sas programming
What are the five ways to do a table lookup in sas? : sas-grid-administration
what type of graphs we will create(for 2+years candidates)?
State the difference between INFORMAT and FORMAT ?
what is enterprise guide? What is the use of it? : Sas programming
What are the data types does SAS contain?
What are the difference between sas functions and procedures?
Do we follow ADAM in analysis dataset development?How? Usually which version? Why is it necessary?
What does proc print, and proc contents are used for?
how do the in= variables improve the capability of a merge? : Sas programming
Have you used macros? For what purpose you have used? : sas-macro
explain the function of substr in sas? : Sas-administrator
how to read the variables in sas? : Sas-administrator
What is the difference between proportion and average?