Using SAS Functions with Macro Variables
The %SYSFUNC Function
You have learned that by using the automatic macro variables
SYSDATE9 and SYSTIME you can include the date and time in a title:
title1 "Report Produced on &sysdate9"; title2 "at &systime";
SYSDATE9 represents
the date on which the SAS session started, and SYSTIME represents
the time at which the SAS session started. Suppose you would rather
see the date in some other format, or suppose you would rather see
the current date or time. You can use the %SYSFUNC function to execute
other SAS functions as part of the macro facility.
General form, %SYSFUNC
function:
%SYSFUNC (function ... |
Get SAS Certification Prep Guide, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.