Seems simple enough – An hour later and various attempts, no further forward, so bow to the experts:- Data _Null_;
call symputx('C_Time',%sysfunc(time(),timeampm.));
%put The current time is &=C_Time;
%put The Non-macro time is %sysfunc(time(),timeampm.);
Run; Excerpt from the Log 33 ! Data _Null_;
34 call symputx('C_Time',%sysfunc(time(),timeampm.));
NOTE: Line generated by the macro function "SYSFUNC".
34 11:43:04 AM
_
388
200
ERROR 388-185: Expecting an arithmetic operator.
ERROR 200-322: The symbol is not recognized and will be ignored.
35 %put The current time is &=C_Time;
WARNING: Apparent symbolic reference C_TIME not resolved.
The current time is C_Time
36 %put The Non-macro time is %sysfunc(time(),timeampm.);
The Non-macro time is 11:43:04 AM
37 Run; Even if I wrap the second argument with a Put to specifically convert Numeric to Character – same result. What is the answer?
... View more