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
In-Reply-To: <200605311354.k4VAkMYE012368@mailgw.cc.uga.edu>
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.