title1 "Report Produced on &sysdate9"; title2 "at &systime";
General form, %SYSFUNC
function:
%SYSFUNC (function
(argument(s)) <,format>)
function
is the name of the
SAS function to execute.
argument(s)
is one or more arguments
that are used by function.
Use commas to separate all arguments. An argument can be a macro variable
reference or a text expression that produces arguments for a function.
format
is an optional format
to apply to the result of function.
By default, numeric results are converted to a character string using
the BEST12. format, and character results are used as they are, without
formatting or translation.
|
ALLCOMB | LEXCOMB |
ALLPERM | LEXCOMBI |
DIF | LEXPERK |
DIM | LEXPERM |
HBOUND | MISSING |
INPUT | PUT |
IORCMSG | RESOLVE |
LAG | SYMGET |
LBOUND | Variable information functions |
title "Report Produced on %sysfunc(today(),worddate.)";
Report Produced on November 4, 2011
title "Report Produced on %sysfunc(left(%sysfunc(today(),worddate.)))";
ERROR: The function LEFT referenced by the %SYSFUNC or %QSYSFUNC macro function has too many arguments. |
title "Report Produced on %sysfunc(left(%qsysfunc(today(),worddate.)))";
Report Produced on November 4, 2011