I have a parameter start_date
in a SAS DIS job of type text, and I have set a default value. If the default value is something like 01JAN2015
(with no quotes) then referencing the variable like
input("&start_date",date9.)
works fine. However, if I give it the default value put(today(),date9.)
then the value held by the parameter is the instruction string rather than the string that the instruction should evaluate to. Thus references to the parameter do not behave as desired.
I've tried using %EVAL
and EVALUATE
, but all such functions seemed to be designed for evaluating arithmetic expressions represented as strings. Is there any way to either get this expression evaluated, or to properly encode it to begin with?
(FYI, the reason I am using a text parameter rather than a date parameter is that trying to use date parameters did not work for me when I tried to loop over the parameterized job, which is my intention here).
Much gratitude.