SET-DATE-WINDOW Command

The SET-DATE-WINDOW command allows specifying the rollover point on your system.

NOTE

You must have SYS3 privileges to execute this command.

Format

SET-DATE-WINDOW {n} {(I)}

Parameter(s)

n

Specifies the rollover point. If a non-numeric parameter is specified, an error message is returned. If no parameter is specified, the currently set rollover point is returned.

I

Suppress the output for this command.

Description

The rollover point determines the numeric cutoff for which century (20th or 21st) is being referred to when representing the year in 2-digit format within a program. For example, if the rollover point is set to 30 (the default), specifying a 2-digit representation of the year between 00 and 29 means you are referring to the years 2000 - 2029. Conversely, specifying a 2-digit representation of the year between 30 and 99 means you are referring to the years 1930 - 1999.

Examples

The example below illustrates displaying the currently set rollover point. In this case, the default rollover point (30) is returned (as in, 01/01/1930).

>SET-DATE-WINDOW

Current Date Window:30

The example below illustrates setting the rollover point to 60 (as in, 01/01/1960).

>SET-DATE-WINDOW 60

Current Date Window:60