Startup Issues
Most MultiValue applications ported to Caché should consider including the following in their login procs.
Two-Digit Years Date Conversion
The command
CENTURY.PIVOT 1930
will set the conversion of two-digit years to four-digit years on Caché to be identical to that on most other MultiValue systems. The value 1930 sets the beginning of a hundred-year range (1930–2029) that is used for two-digit year conversion. The Caché default is 1900, which means a year of 08 will be interpreted as 1908.
CENTURY.PIVOT sets a hundred-year range for two-digit year to four-digit year conversion for the current process. To set the hundred-year range default system-wide, invoke one of the methods of the %SYS.Date.SlidingWindowOpens in a new tab class as part of the ^%ZSTART Caché startup routine (for details, see the section on “Using the Caché ^%ZSTART and ^%ZSTOP Routines” in Caché Specialized System Tools and Utilities).
Emulation Definition
The emulation setting for an account is persistent. This means that if the emulation is changed via the CEMU command during a session the new setting will remain in effect until it is changed. To assure that sessions always start with a defined emulations, include the verb
CEMU CACHE
as part of the login prompt. The CEMU verb is described later in this document and in the Caché MultiValue Commands Reference. Replace “CACHE” as needed with one of the supported emulations.
Date Display Format
If the application is using a non-American date format, consider adding the verb, DATE.FORMAT, as in
DATE.FORMAT (I)