Use YEARWINDOW to specify the first year of the 100-year window (the century window) to be applied to windowed date field processing by the COBOL compiler.
| YEARWINDOW option syntax |
|---|
|
Default is: YEARWINDOW(1900)
Abbreviations are: YW
base-year represents the first year of the 100-year window. You must specify it with one of the following values:
This specifies the starting year of a fixed window. For example, YEARWINDOW(1930) indicates a century window of 1930-2029.
This indicates a sliding window. The first year of the window is calculated by adding the negative integer to the current year. For example, YEARWINDOW(-80) indicates that the first year of the century window is 80 years before the year at the time the program is run.
Usage notes
For example, if the current year were 2008, the DATEPROC option were in effect, and you used the YEARWINDOW(1900) option, the program would terminate with an error message.