Date: Wed, 3 Feb 2010 20:56:15 -0800
Reply-To: SAS_learner <proccontents@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: SAS_learner <proccontents@GMAIL.COM>
Subject: Are these SAS date functions
Content-Type: text/plain; charset=ISO-8859-1
Hello _all_,
data _null_;
file print;
date= sysdate() ;
put "date=" date;
time= systime() ;
format time time8.;
put "time=" time;
months= months_between(datepart(hiredate),today()) ;
put "months=" months;
day= next_day(today(), 2) ;
format day date7.;
put "day=" day;
a= monname(today());
a= downame(today());
put "a=" a;
a= monname3(today());
put "a=" a;
a= downame3(today());
put "a=" a;
run;
Some body asked me why these date functions are not working and when I tried
Sysdate()
data _null_;
98 file print;
99 date= sysdate() ;
-------
68
ERROR 68-185: The function SYSDATE is unknown, or cannot be accessed.
100 put "date=" date;
101 run;
NOTE: The SAS System stopped processing this step because of errors. and
|