|
Sharon-
You have two equally easy solutions. You specified length 13 on your
datetime informat when your value is actually 15 characters long. So, try
either:
dttm_pk = input(dttm, datetime15.); _ or _
dttm_pk = input(dttm,datetime.);
Hope this helps.
----------------------------------------------------------------------
Pete Lund
WA State Caseload Forecast Council
515 15th Ave SE
Olympia, WA 98504-0962
(360) 902-0086 voice
(360) 902-0084 fax
(360) 971-0962 pager
peter.lund@cfc.wa.gov
----------------------------------------------------------------------
-----Original Message-----
From: Sharon Well [mailto:peach71_us@YAHOO.COM]
Sent: Wednesday, October 18, 2000 10:38 AM
To: SAS-L@LISTSERV.UGA.EDU
Subject: DATETIME question
Hi Everyone
I concatenated various variables such as dy, mon, yr
etc to bring create a variable in this form (19APR2000
22:08). Now I am trying to convert 19APR2000 22:08 to
datetime format, to enable me to do calculations such
as difference between two datetime variables etc. .
I tried using
input(dttm, datetime13.);
format dttm_pk datetime13.;
but it just doesn't do it. I get the following error
message
NOTE: Invalid argument to function INPUT
Could someone please help me out here. Thanks in
advance.
Sharon
__________________________________________________
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf! It's FREE.
http://im.yahoo.com/
|