Local Time Zone
You can configure the default value of the time zone (TZ) environment variable that is evaluated by the JZOS Java Virtual Machine (JVM). This may be particularly necessary if the system's time zone format cannot be interpreted correctly by the JZOS JVM.
To test whether the time zone is set and interpreted correctly, you can use a very simple COBOL program that outputs the current value of the COBOL TIME variable.
ACCEPT MY-CURRENT-TIME FROM TIME.
DISPLAY "Current TIME (HHMMSS):" MY-CURRENT-TIME.
If this differs from the actual current time, the location-dependent time zone must be specified explicitly.
The EXECCONF member (for Db2 users, this member is called EXEC<DB2-SSID>), which is located in the Jopaz CONF library, already contains an example of how to specify a special time zone via the TZ environment variable. To activate this, remove the preceding # comment character and enter the correct local time zone as a value.
You can use the following format to explicitly specify winter and summer time with start and end dates (here is an example for Germany). For further details about the TZ environment variable, see the command format in the IBM z/OS documentation.
export TZ=CET-1CEST,M3.5.0,M10.5.0
However, it is best to simply enter the TZ identifier. You can find this in the official "List of TZ database time zones".
export TZ=Europe/Berlin
The example program should then output the correct local time.
If an alternative time zone is required, also apply the above changes to the profiler runtime configuration PROFCONF (for Db2 users this member is called PROF<DB2-SSID>), which is also located in the Jopaz CONF library.