Change Time Zone Description (CHGTIMZON)

Where allowed to run: All environments (*ALL)
Threadsafe: Yes
Parameters
Examples
Error messages

The Change Time Zone Description (CHGTIMZON) command changes a time zone description object that defines the properties of a time zone. These properties are used to convert time values between Coordinated Universal Time (UTC) form and local forms. These properties are also used to express time values in local forms.

Restrictions:

Top

Parameters

Keyword Description Choices Notes
TIMZON Time zone description Name Required, Key, Positional 1
OFFSET Offset -779-779, *SAME Optional
STDNAME Standard Time Single values: *SAME, *GEN, *MSG
Other values: Element list
Optional
Element 1: Abbreviated name Character value
Element 2: Full name Character value
DSTNAME Daylight Saving Time (DST) Single values: *SAME, *NONE, *GEN, *MSG
Other values: Element list
Optional
Element 1: Abbreviated name Character value
Element 2: Full name Character value
STDMSG Standard Time message Name, *SAME Optional
DSTMSG Daylight Saving Time message Name, *SAME Optional
MSGF Message file Single values: *SAME
Other values: Qualified object name
Optional
Qualifier 1: Message file Name
Qualifier 2: Library Name, *LIBL
DSTSTR Daylight Saving Time start Element list Optional
Element 1: Month *SAME, *JAN, *FEB, *MAR, *APR, *MAY, *JUN, *JUL, *AUG, *SEP, *OCT, *NOV, *DEC
Element 2: Day *SAME, *MON, *TUE, *WED, *THU, *FRI, *SAT, *SUN
Element 3: Relative day of month *SAME, *LAST, 1, 2, 3, 4
Element 4: Time Time, *SAME
DSTEND Daylight Saving Time end Element list Optional
Element 1: Month *SAME, *JAN, *FEB, *MAR, *APR, *MAY, *JUN, *JUL, *AUG, *SEP, *OCT, *NOV, *DEC
Element 2: Day *SAME, *MON, *TUE, *WED, *THU, *FRI, *SAT, *SUN
Element 3: Relative day of month *SAME, *LAST, 1, 2, 3, 4
Element 4: Time Time, *SAME
TEXT Text 'description' Character value, *SAME, *BLANK Optional
Top

Time zone description (TIMZON)

Specifies the time zone description to be changed.

This is a required parameter.

name
Specify the name of the time zone description.
Top

Offset (OFFSET)

Specifies the time difference, in minutes, between this time zone and Coordinated Universal Time (UTC). This value is subtracted from local time to obtain UTC time. A negative difference indicates that the time zone is west of UTC and a positive difference indicates that the time zone is east of UTC.

*SAME
This value does not change.
-779 to 779
Specify the time difference, in minutes. Valid values range from -779 minutes to 779 minutes.
Top

Standard Time (STDNAME)

Specifies the abbreviated and full names of the time zone when Daylight Saving Time is not being observed.

Single values

*SAME
This value does not change.
*GEN
The system will generate the abbreviated and full names. The format of the abbreviated name will be the letters 'UTC' followed by the offset followed by the letter 'S'. The offset will appear as a formatted hour and minute value. The full name for the time zone description will be the same as the abbreviated name. For example, a time zone that has an offset of -360 minutes would have an abbreviated and a full name of 'UTC-06:00S'.
*MSG
The abbreviated and full names will be retrieved from the second-level message text of the message specified for the Standard Time message (STDMSG) parameter. When this value is specified, a Standard Time message and message file must be specified for the time zone description.

Element 1: Abbreviated name

character-value
Specify the abbreviated or short name for this time zone. The abbreviated name has a maximum length of 10 characters.

Element 2: Full name

character-value
Specify the full or long name for this time zone. The full name has a maximum length of 50 characters.
Top

Daylight Saving Time (DST) (DSTNAME)

Specifies the abbreviated and full names of the time zone when Daylight Saving Time is being observed. When this parameter is changed to a value other than *NONE, Daylight Saving Time start and end information must be specified for the time zone description.

Single values

*SAME
This value does not change.
*NONE
This time zone does not observe Daylight Saving Time.
*GEN
The system will generate the abbreviated and full names. The format of the abbreviated name will be the letters 'UTC' followed by the offset followed by the letter 'D'. The offset will appear as a formatted hour and minute value. The full name for the time zone description will be the same as the abbreviated name. For example, a time zone that has an offset of -360 minutes would have an abbreviated and a full name of 'UTC-06:00D'.
*MSG
The abbreviated and full names will be retrieved from the second-level message text of the message specified for the Daylight Saving Time message (DSTMSG) parameter. When this value is specified, a Daylight Saving Time message and message file must be specified for the time zone description.

Element 1: Abbreviated name

character-value
Specify the abbreviated or short name for this time zone. The abbreviated name has a maximum length of 10 characters.

Element 2: Full name

character-value
Specify the full or long name for this time zone. The full name has a maximum length of 50 characters.
Top

Standard Time message (STDMSG)

Specifies the predefined message that contains the abbreviated and full names of the time zone that are used when Daylight Saving Time is not being observed. The first 10 characters of the message contain the abbreviated name and the next 50 characters contain the full name. A message identifier can be specified for this parameter only when *MSG is specified for the Standard Time name of the time zone description.

*SAME
This value does not change.
name
Specify the message identifier.
Top

Daylight Saving Time message (DSTMSG)

Specifies the predefined message that contains the abbreviated and full names of the time zone that are used when Daylight Saving Time is being observed. The first 10 characters of the message contain the abbreviated name and the next 50 characters contain the full name. A message identifier can be specified for this parameter only when *MSG is specified for the Daylight Saving Time name of the time zone description.

*SAME
This value does not change.
name
Specify the message identifier.
Top

Message file (MSGF)

Specifies the message file from which the Standard Time message and the Daylight Saving Time message are to be retrieved. The specified message file name and library name are stored in the time zone description. When a message is used to specify the abbreviated and full names, the message is retrieved each time the abbreviated or full names are retrieved. If the message cannot be retrieved from the message file, the names will be returned as *N. A message file can be specified for this parameter only when *MSG is specified for the Standard Time name or the Daylight Saving Time name of the time zone description.

Qualifier 1: Message file

*SAME
This value does not change.
name
Specify the name of the message file.

Qualifier 2: Library

*LIBL
All libraries in the thread's library list are searched for the message file when the message is retrieved. The value *LIBL is saved in the time zone description and is not resolved to a library name by this command.
name
Specify the library where the message file is located.
Top

Daylight Saving Time start (DSTSTR)

Specifies when Daylight Saving Time (DST) starts. This parameter contains four elements: the month in which DST starts, the day on which DST starts, the relative day of the month on which DST starts and the time at which DST starts. If this parameter is specified, all four elements must be specified. This parameter can be changed only when a value other than *NONE is specified for the Daylight Saving Time name of the time zone description. The Daylight Saving Time start information cannot be identical to the Daylight Saving Time end information.

Element 1: Month

*SAME
This value does not change.
*JAN
Daylight Saving Time starts in January.
*FEB
Daylight Saving Time starts in February.
*MAR
Daylight Saving Time starts in March.
*APR
Daylight Saving Time starts in April.
*MAY
Daylight Saving Time starts in May.
*JUN
Daylight Saving Time starts in June.
*JUL
Daylight Saving Time starts in July.
*AUG
Daylight Saving Time starts in August.
*SEP
Daylight Saving Time starts in September.
*OCT
Daylight Saving Time starts in October.
*NOV
Daylight Saving Time starts in November.
*DEC
Daylight Saving Time starts in December.

Element 2: Day

*SAME
This value does not change.
*MON
Daylight Saving Time starts on a Monday.
*TUE
Daylight Saving Time starts on a Tuesday.
*WED
Daylight Saving Time starts on a Wednesday.
*THU
Daylight Saving Time starts on a Thursday.
*FRI
Daylight Saving Time starts on a Friday.
*SAT
Daylight Saving Time starts on a Saturday.
*SUN
Daylight Saving Time starts on a Sunday.

Element 3: Relative day of month

*SAME
This value does not change.
*LAST
Daylight Saving Time starts on the last occurrence of the specified day of the week.
1
Daylight Saving Time starts on the first occurrence of the specified day of the week.
2
Daylight Saving Time starts on the second occurrence of the specified day of the week.
3
Daylight Saving Time starts on the third occurrence of the specified day of the week.
4
Daylight Saving Time starts on the fourth occurrence of the specified day of the week.

Element 4: Time

*SAME
This value does not change.
time
Specify the time of day at which Daylight Saving Time starts. The time is specified in 24-hour format and can be specified with or without a time separator.
  • Without a time separator, specify a string of 4 or 6 digits (hhmm or hhmmss) where hh = hours, mm = minutes, and ss = seconds. Valid values for hh range from 00 to 23. Valid values for mm and ss range from 00 to 59.
  • With a time separator, specify a string of 5 or 8 characters where the time separator specified for your job is used to separate the hours, minutes, and seconds. If this command is entered from the command line, the string must be enclosed in apostrophes. If a time separator other than the separator specified for your job is used, this command will fail.
Top

Daylight Saving Time end (DSTEND)

Specifies when Daylight Saving Time (DST) ends. This parameter contains four elements: the month in which DST ends, the day on which DST ends, the relative day of the month on which DST ends and the time at which DST ends. If this parameter is specified, all four elements must be specified. This parameter can be changed only when a value other than *NONE is specified for the Daylight Saving Time name of the time zone description. The Daylight Saving Time end information cannot be identical to the Daylight Saving Time start information.

Element 1: Month

*SAME
This value does not change.
*JAN
Daylight Saving Time ends in January.
*FEB
Daylight Saving Time ends in February.
*MAR
Daylight Saving Time ends in March.
*APR
Daylight Saving Time ends in April.
*MAY
Daylight Saving Time ends in May.
*JUN
Daylight Saving Time ends in June.
*JUL
Daylight Saving Time ends in July.
*AUG
Daylight Saving Time ends in August.
*SEP
Daylight Saving Time ends in September.
*OCT
Daylight Saving Time ends in October.
*NOV
Daylight Saving Time ends in November.
*DEC
Daylight Saving Time ends in December.

Element 2: Day

*SAME
This value does not change.
*MON
Daylight Saving Time ends on a Monday.
*TUE
Daylight Saving Time ends on a Tuesday.
*WED
Daylight Saving Time ends on a Wednesday.
*THU
Daylight Saving Time ends on a Thursday.
*FRI
Daylight Saving Time ends on a Friday.
*SAT
Daylight Saving Time ends on a Saturday.
*SUN
Daylight Saving Time ends on a Sunday.

Element 3: Relative day of month

*SAME
This value does not change.
*LAST
Daylight Saving Time ends on the last occurrence of the specified day of the week.
1
Daylight Saving Time ends on the first occurrence of the specified day of the week.
2
Daylight Saving Time ends on the second occurrence of the specified day of the week.
3
Daylight Saving Time ends on the third occurrence of the specified day of the week.
4
Daylight Saving Time ends on the fourth occurrence of the specified day of the week.

Element 4: Time

*SAME
This value does not change.
time
Specify the time of day at which Daylight Saving Time ends. The time is specified in 24-hour format and can be specified with or without a time separator.
  • Without a time separator, specify a string of 4 or 6 digits (hhmm or hhmmss) where hh = hours, mm = minutes, and ss = seconds. Valid values for hh range from 00 to 23. Valid values for mm and ss range from 00 to 59.
  • With a time separator, specify a string of 5 or 8 characters where the time separator specified for your job is used to separate the hours, minutes, and seconds. If this command is entered from the command line, the string must be enclosed in apostrophes. If a time separator other than the separator specified for your job is used, this command will fail.
Top

Text 'description' (TEXT)

Specifies the text that briefly describes the object.

*SAME
This value does not change.
*BLANK
No text is specified.
character-value
Specify no more than 50 characters of text, enclosed in apostrophes.
Top

Examples

Example 1: Changing the Offset

CHGTIMZON  TIMZON(CENTRAL) OFFSET(-360)

This command changes the offset specified in the time zone description CENTRAL to negative six hours (-360 minutes).

Example 2: Changing the Daylight Saving Time Start and End Information

CHGTIMZON   TIMZON(CENTRALDST)
            DSTSTR(*OCT *SUN *LAST '02:00:00')
            DSTEND(*APR *SUN 1 '02:00:00')

This command changes the Daylight Saving Time start and end information for the time zone description CENTRALDST. Daylight Saving Time will start at 2:00 am on the last Sunday in October and will end at 2:00 am on the first Sunday in April.

Top

Error messages

*ESCAPE Messages

CPF09A0
Time zone description &1 not changed.
Top