Defining patterns

Prerequisites

Before you define a pattern, you must define the recurrences on which the pattern is based. For more information, refer to Defining recurrences.

To create patterns

A pattern consists of pattern moments based on one or more recurrences, pattern exceptions, and times of day, as shown in the following diagram:

Generating a pattern's pattern moments.
Generating a pattern's pattern moments.
To combine recurrences

You can combine multiple recurrences, as shown in the following diagram:

Combining recurrences and exceptions into a pattern.
Combining recurrences and exceptions into a pattern.

In this diagram, pattern PATRN1 is based on two recurrences: R0001 and R0002.

  • Recurrence R0001 selects every Monday and Friday.
  • Recurrence R0002 selects the 12th and 24th of every month.

PATRN 1 has one exception, which excludes January 1st of every year.

Procedure

To define a pattern, complete the following steps:

  1. Define recurrences. For more information, refer to Defining recurrences.
  2. Use the Patterns (tcccp0190m000) session to define a pattern code.
  3. Use the Patterns (tcccp0190m000) session to add the recurrences to the pattern.
  4. Use the Times of Day by Pattern (tcccp0193m000) session to specify the times of day. Times are defined as local times; the time zone is unspecified.
  5. Use the Pattern Exceptions (tcccp0192m000) session to specify any exceptions you require.
  6. Use the Generate Pattern Moments (tcccp0295m000) session to generate the pattern moments.

To view the generated pattern moments, use the Pattern Moments (tcccp0195m000) session.