Previous Topic: Define SELECT Record to SDTNext Topic: Replace SDT Data Elements


Define TIME Record to SDT

The TIMEREC keyword is required when adding a TIME record to the SDT Record.

To define a new TIME record to the SDT, enter the command:

TSS ADDTO(SDT) TIMEREC(timename)
               DESCRIPT(descriptname)
               RANGE(hhmm:hhmm,...)
TIMEREC

Specifies a time‑name that is user‑defined and can contain letters, numbers or special characters.

Size: 8 characters

DESCRIPT

Designates an optional user‑description field that is used as a logical name for this record. If the description field contains blanks, you must enclose it in single quotes.

Size: 32 characters

RANGE

Specifies one, or a series of, entries in the format hhmm:hhmm for the starting and ending times of a range. You can indicate up to 53 ranges per command.

The value for minutes must be 00, 15, 30, or 45 designating a 15 minute block of time. For example, 00 refers to the minutes 00 to 14; therefore, RANGE (1200:1300) signifies 12 noon through 1:14 p.m. If you want noon to 1 p.m., specify RANGE(1200:1245) to designate those four quarter hours.

In addition, the end time must be greater than the start time, and wrapping is not allowed.

Examples: define TIME record

This example specifies 11 p.m. until 1 a.m.:

RANGE(2300:2345,0000:0045)

This example is not valid:

RANGE(2300:0045)

This example adds a TIME record called TEMP1 to the SDT:

TSS ADDTO(SDT) TIMEREC(TEMP1)

This example adds a time period from 1 p.m. to 5 p.m. to the RANGE field of the TIME record called TEMP1 in the SDT:

TSS ADDTO(SDT) TIMEREC(TEMP1)
               RANGE(1300:1645)