Communicator 3000 MPE/iX Release 6.0 (Platform Software Release C.60.00) (30216-90269)
Chapter 9 139
Year 2000 Enhancements
VPLUS Enhancements for Turn-of-Century
Date output will be formatted with 4-digit years if the target field is
wide enough to receive the date, and the user requests this action.
Examples of such output include the SET statement in FORMSPEC.
The target field should be at least 10 characters in length to have a
4-digit year output.
VPLUS, by default, will format date output with 2-digit years. To
change the behavior as described above, define a JCW called
VSETNEXTCENTURY and set bit 15 to 1 (bits are numbered from 0
through 15). It should be noted that this option will be active for fields
wide enough to hold the 4-digit year date. For other fields, 2-digit years
will be used.
Existing 2-digit years can be interpreted differently to handle dates in
the next century. Currently VPLUS handles year components 00-99 as
1900-1999. This scheme of interpretation can be changed. In the new
scheme, 00-49 is interpreted as 2000-2049 and 50-99 is interpreted as
1950-1999. This interpretation will be valid through all processing done
by VPLUS. For example, this scheme will allow the user to enter
02/29/00 (MDY order) in an existing application and have it processed
correctly.
To invoke this method of date interpretation, define a JCW called
VSETNEXTCENTURY and set bit 14 to 1. This method is used for
processing only 2-digit year dates and not 4-digit year dates. The
display of 2-digit year dates is not affected by this enhancement. This
means that 12/11/10 (MDY order) can refer to 1910 in one application
and 2010 in another application.
NOTE When defining the JCW VSETNEXTCENTURY, set all unused bits to 0.