![]() Chapter Contents |
![]() Previous |
![]() Next |
| YEARCUTOFF= |
| Valid in: | configuration file, SAS invocation, OPTIONS statement, Systems Options window |
| Category: | Input control: Data processing |
| PROC OPTIONS GROUP= | INPUTCONTROL |
| Syntax | |
| Syntax Description | |
| Details | |
| See Also |
Syntax |
| YEARCUTOFF= nnnn | nnnnn |
| Range: | 1582-19900 |
| Default: | 1920 |
| Details |
The YEARCUTOFF= value is the default used by various DATE and DATETIME informats and functions.
If the default value of nnnn (1920) is in effect, the 100-year span begins with 1920 and ends with 2019. Therefore, any informat or function that uses a two-digit year value assumes a prefix of 19. For example, the value 92 refers to the year 1992.
The value specified in YEARCUTOFF= can result in a range of years that span two centuries. For example, if you specify YEARCUTOFF=1950, any two-digit value between 50 and 99 inclusive refers to the first half of the 100-year span, which is in the 1900s. Any two-digit value between 00 and 49 inclusive refers to the second half of the 100-year span, which is in the 2000s. A 100-year Span with Values in Two Centuries illustrates the relationship between the 100-year span and the two centuries if YEARCUTOFF=1950.
A 100-year Span with Values in Two Centuries
YEARCUTOFF= applies to the informats and formats that specify one- and two-digit years.
Note: YEARCUTOFF= has
no effect on existing SAS dates or dates read from input data that include
a four-digit year. ![[cautionend]](../common/images/cautend.gif)
Operating Environment Information: The syntax that is shown here applies to the OPTIONS statement. On the command
line or in a configuration file, the syntax is specific to your operating
environment. For details, see the SAS documentation for your operating environment.
| See Also |
"Year 2000" in SAS Language Reference: Concepts.
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.