Date: Mon, 10 Dec 2001 03:12:02 -0800
Reply-To: Stig Eide <stigeide@YAHOO.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Stig Eide <stigeide@YAHOO.COM>
Organization: http://groups.google.com/
Subject: Re: Question: How to combine Two variables in a data set into One?
Content-Type: text/plain; charset=ISO-8859-1
Hi!
I think the easiest is to use the DHMS function, since you already
have the date and time as separate variables:
c=dhms(a,hour(b),minute(b),second(b));
Stig
momozeus@yahoo.com.cn (momo zeus) wrote in message news:<1a48ef9.0112092342.75208c9a@posting.google.com>...
> Hi,I encoutered a problem with my work.I have a data set that contain
> two variables on Time , while I now hope to combine them into one.The
> question is such as follows:
> data sample;
> input a b;
> format a date9. b time5.;
> informat a date9. b time5.;
> run;
> While such a data set is I hope to get:
> data result;
> input c;
> format c datetime22.;
> informat c datetime22.;
> Thanks!
> momo
|