<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/tc/onlinemanual/000375" xml:lang="en">
   <Header>
      <Title>To define patterns</Title>
      <Keyword type="header" order="d1e1145853">
         <Level1>Pattern</Level1>
         <Level2>setup</Level2>
      </Keyword>
   </Header>
   <GeneralSection>
      <SectionTitle>Prerequisites</SectionTitle>
      <Paragraph>Before you define a pattern, you must define the <Link href="/baanerp/tc/glossary/glossary#000460" role="glossary">recurrences</Link> on which the pattern is based. For more
		information, refer to <Link href="/baanerp/tc/onlinemanual/000127" role="manual">To define recurrences</Link>.</Paragraph>
   </GeneralSection>
   <GeneralSection>
      <SectionTitle>To create patterns</SectionTitle>
      <Paragraph>A <Link href="/baanerp/td/glossary/glossary#000030" role="glossary">pattern</Link> consists of <Link href="/baanerp/tc/glossary/glossary#000458" role="glossary">pattern moments</Link> based on one or more <Link href="/baanerp/tc/glossary/glossary#000460" role="glossary">recurrences</Link>, pattern exceptions, and times of day, as
		shown in the following diagram:</Paragraph>
      <Figure space-and-orientation="indented-estimated">
         <HTML:IMG xmlns:HTML="http://www.w3.org/TR/REC-html40" width="567" height="425"
                   SRC="../images/tr_graph_om000375b.gif"
                   alt="[...]"/>
         <FigCaption>Generating a pattern's pattern moments.</FigCaption>
      </Figure>
   </GeneralSection>
   <GeneralSection>
      <SectionTitle>To combine recurrences</SectionTitle>
      <Paragraph>You can combine multiple recurrences, as shown in the following
		diagram:</Paragraph>
      <Figure space-and-orientation="indented-estimated">
         <HTML:IMG xmlns:HTML="http://www.w3.org/TR/REC-html40" width="631" height="308"
                   SRC="../images/tr_graph_om000375a.gif"
                   alt="[...]"/>
         <FigCaption>Combining recurrences and exceptions into a pattern.</FigCaption>
      </Figure>
      <List>
         <ListIntro>In this diagram, pattern PATRN1 is based on two recurrences:
		  R0001 and R0002.</ListIntro>
         <ListItem>Recurrence R0001 selects every Monday and Friday.</ListItem>
         <ListItem>Recurrence R0002 selects the 12th and 24th of every month.</ListItem>
      </List>
      <Paragraph>PATRN 1 has one exception, which excludes January 1st of every
		year.</Paragraph>
   </GeneralSection>
   <GeneralSection>
      <SectionTitle>Procedure</SectionTitle>
      <ProcedureList>
         <ListIntro>To define a <Link href="/baanerp/td/glossary/glossary#000030" role="glossary">pattern</Link>, complete the following steps:</ListIntro>
         <ListItem>Define <Link href="/baanerp/tc/glossary/glossary#000460" role="glossary">recurrences</Link>. For more information, refer to <Link href="/baanerp/tc/onlinemanual/000127" role="manual">To define recurrences</Link>.</ListItem>
         <ListItem>Use the <GUIRef href="/baanerp/tc/ccp/tcccp0190m000" role="session">Patterns (tcccp0190m000)</GUIRef> session to define a <Link href="/baanerp/td/glossary/glossary#000000000000019" role="glossary">pattern code</Link>.</ListItem>
         <ListItem>Use the <GUIRef href="/baanerp/tc/ccp/tcccp0191m000" role="session">Recurrences by Pattern (tcccp0191m000)</GUIRef> session to add the recurrences to the pattern.</ListItem>
         <ListItem>Use the <GUIRef href="/baanerp/tc/ccp/tcccp0193m000" role="session">Times of Day by Pattern (tcccp0193m000)</GUIRef> session to specify the times of day. Times are
		  defined as local times; the time zone is unspecified.</ListItem>
         <ListItem>Use the <GUIRef href="/baanerp/tc/ccp/tcccp0192m000" role="session">Pattern Exceptions (tcccp0192m000)</GUIRef> session to specify any exceptions you require.</ListItem>
         <ListItem>Use the <GUIRef href="/baanerp/tc/ccp/tcccp0295m000" role="session">Generate Pattern Moments (tcccp0295m000)</GUIRef> session to generate the <Link href="/baanerp/tc/glossary/glossary#000458" role="glossary">pattern moments</Link>.</ListItem>
      </ProcedureList>
      <Paragraph>To view the generated pattern moments, use the <GUIRef href="/baanerp/tc/ccp/tcccp0195m000" role="session">Pattern Moments (tcccp0195m000)</GUIRef> session.</Paragraph>
   </GeneralSection>
   <RelatedTopics>
      <SectionTitle>Related topics</SectionTitle>
      <RelTopic>
         <Link href="/baanerp/tc/onlinemanual/000120" role="manual">Overview of calendars and periods</Link>
      </RelTopic>
      <RelTopic>
         <Link href="/baanerp/tc/onlinemanual/000127" role="manual">To define recurrences</Link>
      </RelTopic>
      <RelTopic>
         <Link href="/baanerp/tc/onlinemanual/000141" role="manual">To use patterns</Link>
      </RelTopic>
   </RelatedTopics>
</ManualTopic>