If you are upgrading a system that observes a non-Gregorian
calendar to IBM i V6R1, or later, you need
to set the Year offset value before the system is upgraded to the
new release. This is the preferred method because your time zone can
be set correctly with this year offset as soon as the upgrade is complete.
Before the upgrade, complete the following steps:
- Create a user-defined time zone object based on the time
zone that your system currently uses.
- From IBM Navigator
for i,
expand .
- Right-click on Time Zones and
click Open.
- Click New Based On.
- Complete the fields as necessary.
- Create the QWCYEAROFS data area in the QSYS library.
The QWCYEAROFS data area should be a character data area
with a minimum length of 14 characters.
- Sign on to your system using a 5250 emulator session.
- Type the following command and press F4 (Prompt):
- Specify QWCYEAROFS for the name of the
data area.
- Specify QSYS for the library of the data
area.
- Specify *CHAR for the Type parameter
and press Enter.
- Specify 14 for the Length parameter.
- For the Initial value field, use the
following format, and press Enter:
Byte 1: |
Sign for the current Year offset (either + or -) |
Byte 2-4: |
Year offset from Gregorian year (000 to 140) |
Byte 5-14: |
Time zone description name, left-aligned and padded on the
right with blanks. |
You can use a special value of *SYSVAL to indicate that
the current time zone object specified in the Time zone (QTIMZON)
system value should be changed. If you use this special value, you
must complete an extra step to set the QTIMZON system value with the
time zone object that you create (in step 1) before the upgrade. If
the time zone that you specify does not exist, the current QTIMZON
value is used.
During the upgrade of the operating system,
the system observes the following rules to set the QTIMZON system
value.
Table 1. Setting the QTIMZON system value
If |
Then |
The QWCTIMZON data area exists. |
The system uses this data area to set the QTIMZON
system value. |
The QWCYEAROFS data area exists. |
- The time zone value specified in this data area overrides any
time zone value that is determined by the QWCTIMZON data area.
- The system looks for the QWCYEAROFS data area when determining
the default Year offset value. The Year offset value is set in the
time zone object that is determined by the QWCYEAROFS data area.
- The QTIMZON system value is set with this time zone description.
|
For more information about the QWCTIMZON data area, see Setting the time zone before upgrading to IBM i V5R3, or later.
Sample contents of the data area
Here are
some examples of the contents of the data area.
1...5....0....
-057QP0400UTC2 Example 1 (Thai Buddhist)
+012QP0900JST Example 2 (Japan)
-057*SYSVAL Example 3 (Thai Buddhist with *SYSVAL)