<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/basictasks/000038" xml:lang="en">
	<Header>
		<Title xmlns:ssa="http://www.ssaglobal.com" xmlns:HTML="http://www.w3.org/TR/REC-html40">To define a job</Title>
	</Header>
	<GeneralSection><ProcedureList><ListIntro>To define a new job, take the following steps:</ListIntro>
			<ListItem>Start a session that you want to include in the job, and enter the data in the regular way.</ListItem>
			<ListItem>Click <GUIRef href="" role="manual">Add to Job</GUIRef>. The <GUIRef href="/baanerp/tt/aad/ttaad5102s000" role="session">Add Session to Job (ttaad5102s000)</GUIRef> session starts.</ListItem>
			<ListItem>Click the browse arrow on the <GUIRef href="" role="manual">Job</GUIRef> field to zoom to the <GUIRef href="/baanerp/tt/aad/ttaad5500m000" role="session">Job Data (ttaad5500m000)</GUIRef> session.</ListItem>
			<ListItem>Click <GUIRef href="" role="manual">New</GUIRef>. The <GUIRef href="/baanerp/tt/aad/ttaad5100s000" role="session">Job Data (ttaad5100s000)</GUIRef> details session starts , which you can use to create a new job for your session.</ListItem>
			<ListItem>Enter a job code and a job description.</ListItem>
			<ListItem>Specify when you want the job to run as described in the next section <DocRef>To schedule a job.</DocRef>
			</ListItem>
			<ListItem>Click <GUIRef href="" role="manual">Save</GUIRef> and close the <GUIRef href="/baanerp/tt/aad/ttaad5100s000" role="session">Job Data (ttaad5100s000)</GUIRef> session. You return to the <GUIRef href="/baanerp/tt/aad/ttaad5102s000" role="session">Add Session to Job (ttaad5102s000)</GUIRef> session. You can now add the session to the job as described in <Link href="/baanerp/basictasks/000039" role="manual">To add a session to a job</Link>.</ListItem>
		</ProcedureList>
		<GeneralSection><SectionTitle>To schedule a job</SectionTitle>
			<List><ListIntro>To schedule a job, take one of the following steps in the <GUIRef href="/baanerp/tt/aad/ttaad5100s000" role="session">Job Data (ttaad5100s000)</GUIRef> details session:</ListIntro>
				<ListItem>To run the job at a specific time, clear the <GUIRef href="" role="manual">Use External Sched</GUIRef> check box. You can enter the job's start date and time in the <GUIRef href="" role="manual">Next Execution Date</GUIRef> fields further down in the session.</ListItem>
				<ListItem>To start the job yourself, select the <GUIRef href="" role="manual">Use External Sched</GUIRef> check box. You can start the job by using the <GUIRef href="/baanerp/tt/aad/ttaad5500m000" role="session">Job Data (ttaad5500m000)</GUIRef> session. For details, see <Link href="/baanerp/basictasks/000041" role="manual">To run a job</Link>.</ListItem>
				<ListItem><List><ListIntro>To run the job at regular intervals, select the <GUIRef href="" role="manual">Periodical</GUIRef> check box. You must then either:</ListIntro>
						<ListItem>Define a calendar for the job. SSA ERP will run the job on the dates and times that you define in the job calendar. For details, refer to <Link href="/baanerp/basictasks/000040" role="manual">To define a job calendar</Link>.</ListItem>
						<ListItem>Specify the period length. SSA ERP starts the job at the start of each period.</ListItem>
					</List>
				</ListItem>
			</List>
			<Paragraph>If you enter a date and time in the <GUIRef href="" role="manual">End of Period</GUIRef> fields, SSA ERP will not start the job after this time.</Paragraph>
			<List><ListIntro>Select the <GUIRef href="" role="manual">Use External Scheduler</GUIRef> check box if you want to start the job in one of the following ways:</ListIntro>
				<ListItem>Through an external job scheduler such as Maestro from UNISON, or through an external program such as UNIX.</ListItem>
				<ListItem>In the <GUIRef href="/baanerp/tt/aad/ttaad5203m000" role="session">Activate Job (ttaad5203m000)</GUIRef> session.</ListItem>
				<ListItem>Through SSA ERP s job daemon. You can start the job daemon with the <Code>rc.startjob&lt;job&gt;</Code> command on the command line.</ListItem>
			</List>
		</GeneralSection>
		<GeneralSection><SectionTitle>To stop the job after a specific time</SectionTitle>
			<Paragraph>To stop the job if it runs longer than a specific time, enter a value in the <GUIRef href="" role="manual">Maximum Duration</GUIRef> field of the <GUIRef href="/baanerp/tt/aad/ttaad5100s000" role="session">Job Data (ttaad5100s000)</GUIRef> details session. If the maximum duration is reached, SSA ERP finishes running the current session, but does not start the next session.</Paragraph>
			<Paragraph>Values up to 59 to represent minutes. To represent values of more than one hour, enter the number of hours followed by the number of minutes, without a separator.</Paragraph>
		</GeneralSection>
		<GeneralSection><SectionTitle>Example</SectionTitle>
			<List><ListItem>To specify 30 minutes, enter 30.</ListItem>
				<ListItem>To specify one hour, enter 100.</ListItem>
				<ListItem>To specify one hour plus 30 minutes, enter 130.</ListItem>
			</List>
		</GeneralSection>
	</GeneralSection>
	<RelatedTopics><SectionTitle>Related topics</SectionTitle>
		<RelTopic><Link href="/baanerp/basictasks/000037" role="manual">To use jobs</Link>
		</RelTopic>
		<RelTopic><Link href="/baanerp/basictasks/000039" role="manual">To add a session to a job</Link>
		</RelTopic>
		<RelTopic><Link href="/baanerp/basictasks/000040" role="manual">To define a job calendar</Link>
		</RelTopic>
		<RelTopic><Link href="/baanerp/basictasks/000041" role="manual">To run a job</Link>
		</RelTopic>
	</RelatedTopics>
</ManualTopic>
