Date: Thu, 24 Aug 2000 19:35:31 -0500
Reply-To: shiling@math.wayne.edu
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Shiling Zhang <shiling@MATH.WAYNE.EDU>
Organization: Wayne State University
Subject: Re: SAS Date Question?
Content-Type: text/plain; charset=us-ascii
All Date and Time Functions will work fine if one stores it as SAS date, which
will give him a lot of additional advantages.
For example,
334 data _null_;
335 x=200007;y=0;
336 x_yr=year(x);y_yr=year(y);
337 put _all_;
338 run;
X=200007 Y=0 X_YR=2507 Y_YR=1960 _ERROR_=0 _N_=1
NOTE: The DATA statement used 0.11 seconds.
Brian Vuong wrote:
> We currently use YYYYMM, 200007 for July 2000 as standard. Should I
> convert that date standard to SAS date if I want to use it in SAS?
> Is there any benefit for using SAS Date over the above date standard? Do I
> need to convert to SAS date if I need to do analysis or the above date would
> be OK?
>
> Regards,
>
> Brian Vuong
|