Date: Tue, 8 Nov 2005 09:16:34 -0800
Reply-To: shiling99@YAHOO.COM
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: shiling99@YAHOO.COM
Organization: http://groups.google.com
Subject: Re: Invalid argument to function DATEJUL...
In-Reply-To: <A3D5552AD7F7BB4A978B8B4A376775F505B8B672@na1ecm60.dearborn.ford.com>
Content-Type: text/plain; charset="iso-8859-1"
Not all numeric numbers are valid Julian. That is probably why you have
error messages. Please see the follow log.
238 data _null_;
239 do DCDCREDT=-1, 0, 1996234,96566;
240 CRDATE=DATEJUL(DCDCREDT);
241 if _error_=1 then put _all_;
242 end;
243 run;
NOTE: Invalid argument to function DATEJUL at line 240 column 12.
DCDCREDT=-1 CRDATE=. _ERROR_=1 _N_=1
NOTE: Invalid argument to function DATEJUL at line 240 column 12.
DCDCREDT=0 CRDATE=. _ERROR_=1 _N_=1
DCDCREDT=1996234 CRDATE=13382 _ERROR_=1 _N_=1
NOTE: Invalid argument to function DATEJUL at line 240 column 12.
DCDCREDT=96566 CRDATE=. _ERROR_=1 _N_=1
DCDCREDT=96566 CRDATE=. _ERROR_=1 _N_=1
NOTE: Mathematical operations could not be performed at the following
places. The results of the operations have been set to missing
values.
Each place is given by: (Number of times) at (Line):(Column).
3 at 240:12
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.01 seconds
|