LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (October 2000, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 18 Oct 2000 10:51:53 -0700
Reply-To:   "Lund, Pete" <Peter.Lund@CFC.WA.GOV>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Lund, Pete" <Peter.Lund@CFC.WA.GOV>
Subject:   Re: DATETIME question
Comments:   To: Sharon Well <peach71_us@YAHOO.COM>
Content-Type:   text/plain; charset="iso-8859-1"

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/


Back to: Top of message | Previous page | Main SAS-L page