Date: Fri, 10 Jul 1998 08:20:16 GMT
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
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 <email@example.com>,
firstname.lastname@example.org (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,
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum