TODAY Function


Returns the current date as a SAS date value

Category: Date and Time

Alias: DATE

Syntax

TODAY ()

Details

The TODAY function produces the current date in the form of a SAS date value, which is the number of days since January 1, 1960.

Example

These statements illustrate a practical use of the TODAY function:

 data _null_;     tday=today();     if (tday-datedue)> 15 then        do;           put 'As of ' tday date9. ' Account #'              account 'is more than 15 days overdue.';        end;  run; 



SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 704

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net