|
Hi Robert,
My default yearcutoff date is set to 1920 in my config.sas file and I'm not
having any problems. If you are using version 6 and you don't have the
yearcutoff option set, you will have problems. Here's some tests that I did:
data test;
input date $char.;
date2=input(date,date7.);
date3=input("&sysdate",date7.);
cards;
01jan00
;
proc print data=test;
format date2 date3 date9.;
run;
OUTPUT:
OBS DATE DATE2 DATE3
1 01jan00 01JAN2000 05JAN2000
Here is how you can check your yearcutoff value:
proc options option=yearcutoff;
run;
LOG:
SAS (r) Proprietary Software Release 6.12 TS020
YEARCUTOFF=1920 Cutoff year for DATE7. informat
Lots of info is available on http://www.sas.com/software/year2000/
Hope this helps
~~~~~~~~~~~~~~~~~~~~~~~~
> Laurie Abell
> Dofasco Inc., IT Logistics Systems
> laurie_abell@dofasco.ca
~~~~~~~~~~~~~~~~~~~~~~~~
> -----Original Message-----
> From: Davis Robert F Contr AEDC/SVT [SMTP:Robert.Davis@ARNOLD.AF.MIL]
> Sent: Wednesday, January 05, 2000 11:18 AM
> To: SAS-L@LISTSERV.UGA.EDU
> Subject: y2k glitch
>
> When using the input function to convert a string date with a two digit
> year
> I.E. Macro Varible &SYSDATE the year will come up as 1900. This can also
> occur on any data files with two digit years.
>
> Robert F. Davis
> Sverdrup Technology, Inc.
> Arnold Air Force Base, TN. 37389
|