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 (April 2000, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 26 Apr 2000 08:18:47 -0400
Reply-To:   "Miller, Scott" <scott.miller@CAMCARE.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Miller, Scott" <scott.miller@CAMCARE.COM>
Subject:   Re: SQL and variable formats
Comments:   To: "Philp, Stephen R." <Stephen.Philp@CSHS.ORG>
Content-Type:   text/plain; charset="iso-8859-1"

i have that same problem when pulling data from oracle. my solution may be brute force, but is simple:

format new_date mmddyy10.;

new_date=old_date/86400; (i divide the datetime variable by the number of seconds in a day)

Scott D. Miller, M.A.

Medical Informatics Analyst/SAS Programmer Center for Health Services and Outcomes Research CAMCARE Health Education and Research Institute 304 388-9918

"Every good scientist is one part B.F. Skinner and one part P.T. Barnum"

Another Month Ends...All Targets Met...All Systems Working... All Staff Eager and Enthusiastic...All Pigs Fed and Ready to fly

-----Original Message----- From: Philp, Stephen R. [mailto:Stephen.Philp@CSHS.ORG] Sent: Tuesday, April 25, 2000 5:59 PM To: SAS-L@LISTSERV.UGA.EDU Subject: SQL and variable formats

I have some pass-through SQL going against some Oracle tables and am having a hard time trying to figure out how to format a date. The variable in my new table is a sas date with a datetime format (01DEC1998:00:00:00), but when I try to format it to mmddyy10. it has invalid data. Could anyone offer some help? Thanks, Stephen Philp


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