Date: Fri, 10 Jul 1998 08:20:16 GMT
Reply-To: sjoberg@MY-DEJANEWS.COM
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: sjoberg@MY-DEJANEWS.COM
Organization: Deja News - The Leader in Internet Discussion
Subject: Re: calculating age from DOB
Hi Jeremy try this
date = input(dob,mmddyy6.);
hope it will help // Bosse Sjvberg
In article <6o1c1s$pch@paladin.cc.emory.edu>,
jcorry@paladin.cc.emory.edu (Jeremy J. Corry) wrote:
> I have a dataset that contains a date of birth variable in format 'mmddyy'
>
> I would like to create a variable representing age in days.
>
> I assume if I convert my DOB variable to a SAS date value I can then
> subtract it from todays date and get age in days.
>
> But how do I convert DOB to a SAS date?
>
> thanks if you can help,
> Jeremy
>
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
|