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 (May 2006, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 31 May 2006 13:58:49 +0000
Reply-To:     toby dunn <tobydunn@HOTMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         toby dunn <tobydunn@HOTMAIL.COM>
Subject:      Re: SAS Date Question
Comments: To: mehedisas@YAHOO.COM
In-Reply-To:  <>
Content-Type: text/plain; format=flowed

Rathindronath ,

Well since you have been asking alot of questions lately (which isnt neccessarily a bad thing) its time to teach you to fish for yourself, go look up the datepart function and then do the math. If you are unsure about whether you have written the code efficiecntly post your code back asking for comments.

Toby Dunn

From: Rathindronath <mehedisas@YAHOO.COM> Reply-To: Rathindronath <mehedisas@YAHOO.COM> To: SAS-L@LISTSERV.UGA.EDU Subject: SAS Date Question Date: Wed, 31 May 2006 09:54:06 -0400

I Have a dataset as follows:

Patient Discharge Admission Duration 001 30Jul2005:22:43:00 13Jul20055:00:00:00 ? 002 29Jul2005:22:43:00 12Jul20055:00:00:00 ? 003 28Jul2005:22:43:00 10Jul20055:00:00:00 ?

Here Should be Duration = (Admission - Discharge) + 1 [Note: The variable Duration should be in Days} Thanks a lot in advance.

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