SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Setting Up Your SAS Session
Setting System Options


Handling Two-Digit Years: Year 2000 Compliance

If you use two-digit year values in your data lines, you should consider another important system option, the YEARCUTOFF= option. This option specifies which 100-year span is used to interpret two-digit year values.

100-year span

All versions of SAS software represent dates correctly from 1582 A.D. to 20,000 A.D. (Leap years, century, and fourth-century adjustments are made automatically. Leap seconds are ignored, and SAS software does not adjust for Daylight Savings Time.) However, you should be aware of the YEARCUTOFF= value to ensure that you are properly interpreting two-digit years in data lines.

As with other system options, you specify the YEARCUTOFF= option in the OPTIONS statement:

     options yearcutoff=1925;

back||next


Copyright © 2002 SAS Institute Inc., Cary, NC, USA. All rights reserved.

Terms of Use & Legal Information | Privacy Statement