Chapter Contents

Previous

Next
YEARCUTOFF=

YEARCUTOFF=



Specifies the first year of a 100-year span that will be used by date informats and functions to read a two-digit year

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

Syntax Description

nnnn | nnnnn
specifies the first year of the 100-year span.
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

[IMAGE]

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]

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.  [cautionend]

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.