Yep, Thats what my understanding is too and that also raised my eyebrows failing to comprehend OP's put statements- %let start_date=20133;/*i am testing*/ %let end_date=20133 /*i am testing*/ /*OP's put statement*/ %put start_date: %sysfunc(inputn(&start_date.,worddate18.),date9.); %put end_date: %sysfunc(inputn(&end_date.,worddate18.),date9.); /*my log*/ WARNING: Argument 2 to function INPUTN referenced by the %SYSFUNC or %QSYSFUNC macro function is out of range. NOTE: Mathematical operations could not be performed during %SYSFUNC function execution. The result of the operations have been set to a missing value. start_date: . 4 %put end_date: %sysfunc(inputn(&end_date.,worddate18.),date9.); WARNING: Argument 2 to function INPUTN referenced by the %SYSFUNC or %QSYSFUNC macro function is out of range. NOTE: Mathematical operations could not be performed during %SYSFUNC function execution. The result of the operations have been set to a missing value. end_date: . I think the correct put statement should be - %put %sysfunc(putn(&start_date.,worddate18.)); %put %sysfunc(putn(&end_date.,worddate18.));
... View more