TIMSEP (Time Separator) keyword for physical and logical files

You can use this field-level keyword to specify the separator character used for a time field. This keyword is valid only for time fields (data type T).

The format of the keyword is:
TIMSEP(*JOB | 'time-separator')

The time-separator parameter specifies the separator character that appears between the hour, minute, and second values. Valid values are a colon (:), a period (.), a comma (, ), and blank ( ). The parameter must be enclosed in single quotation marks.

If you specify *JOB, the default is the job attribute.

For physical files, if you do not specify the TIMSEP keyword, the default is the job attribute.

For logical files, if you do not specify the TIMSEP keyword, the default is the separator character from the physical file. If you did not specify the TIMSEP keyword for the physical file field (*ISO, *USA, *EUR, or *JIS was specified on the TIMFMT keyword), the default is the job attribute.

If you specify *ISO, *USA, *EUR, or *JIS time format on the TIMFMT keyword, you cannot specify the TIMSEP keyword. These formats have a fixed separator.

If the DFT keyword is not specified, the default value is the current time.

The TIMSEP keyword overrides the job attribute for a time field. It does not change the system default.

Example

The following example shows how to specify the TIMSEP keyword.

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A
00020A          R RECORD
00030A            TIMFLD1         T         TIMSEP(' ')
00040A            TIMFLD2         T         TIMSEP('.')

If the current time is 2 o'clock p.m., the system time format is hhmmss, and the system time separator is ':', TIMFLD1 contains 14 00 00. TIMFLD2 contains 14.00.00.