LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (January 2000, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 5 Jan 2000 11:55:01 -0500
Reply-To:   laurie_abell@DOFASCO.CA
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Laurie Abell <laurie_abell@DOFASCO.CA>
Subject:   Re: y2k glitch
Comments:   To: Robert.Davis@ARNOLD.AF.MIL
Content-Type:   text/plain

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


Back to: Top of message | Previous page | Main SAS-L page