Date: Wed, 8 May 2002 14:35:21 -0400
Reply-To: Gigi Lipori <pflugg@BELLSOUTH.NET>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Gigi Lipori <pflugg@BELLSOUTH.NET>
Organization: Newsfeeds.com http://www.newsfeeds.com 100,000+ UNCENSORED
Newsgroups.
Subject: Failure in Month and Year Functions (invalid argument)
I'm running PC SAS v8.02. Have two statements that says:
THISMNTH=MONTH(ADM_DATE);
THISYEAR=YEAR(ADM_DATE);
I get an errors every time they execute -- Invalid argument to function
MONTH and Invalid argument to function YEAR.
From the log I can see two example values that fail:
ADM_DATE = 26FEB2002:22:13:20
ADM_DATE = 29MAR2002:06:24:00
Can anyone see why it's failing. Feel as though I'm missing something
obvious, but I just can't figure it out. Any help would be
appreciated...Gigi
|