Rational Developer for System z
PL/I for Windows, Version 7.6, Programming Guide

WINDOW compile-time option

By default, all dates with two-digit years are viewed as falling in a window starting with 1950 and ending in 2049. You can use the WINDOW option to change the value for your century window.

As previously mentioned, the default for this option is WINDOW(1950). You can specify the value for w as one of the following:

To create a fixed window, you could specify WINDOW(1900) and all two-digit years would be assumed to occur in the 20th century.

If the current year were 1998, and you wanted to create a sliding window, you could specify WINDOW(-5). The resulting century window would span the years 1993 through 2092, inclusive. When the year changes to 1999, the window would also move forward by one year.

If you set a value for the century window using the WINDOW compile-time option, that value is used for the window argument in the built-in functions which allow it, unless otherwise specified in that built-in. See Using built-in functions with MLE for more details.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)