数値のSAS日付値として現在の日付を返します。
| カテゴリ: | 日付と時間 |
| 別名: | DATE |
| 操作: | TIMEZONE=システムオプションの値が、タイムゾーン名またはタイムゾーンIDに設定されている場合、この関数に返される日付値と時間値は、タイムゾーンにより決定されます。 |
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;option timezone='America/Denver'; data _null_; d1=today(); put d1=nldate.; run;
d1=November 07, 2012
option timezone='Asia/Seoul'; data _null_; d2=today(); put d2=nldate.; run;
d2=November 08, 2012