<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/basictasks/000041" xml:lang="en">
	<Header>
		<Title xmlns:ssa="http://www.ssaglobal.com" xmlns:HTML="http://www.w3.org/TR/REC-html40">To run a job</Title>
	</Header>
	<GeneralSection><List><ListIntro>A job can be executed in two ways:</ListIntro>
			<ListItem>Using the SSA ERP job <Link href="/baanerp/tt/glossary/glossary#000026" role="glossary">daemon</Link>
				<Code>rc.startjob</Code>. You do not need to be logged on to SSA ERP to execute the job.</ListItem>
			<ListItem>Running in your own user environment. You must stay logged on to SSA ERP until the job is completed.</ListItem>
		</List>
		<GeneralSection><SectionTitle>To use the SSA ERP job daemon:</SectionTitle>
			<ProcedureList><ListItem>Start the <GUIRef href="/baanerp/tt/aad/ttaad5500m000" role="session">Job Data (ttaad5500m000)</GUIRef> session and select the job.</ListItem>
				<ListItem>On the <GUIRef href="" role="manual">Specific</GUIRef> menu, click <GUIRef href="" role="manual">Queue Job</GUIRef>. The job's status changes to <GUIRef href="" role="manual">In Queue</GUIRef>.</ListItem>
			</ProcedureList>
			<Paragraph>If you cleared the <GUIRef href="" role="manual">Use External Sched</GUIRef> check box in the <GUIRef href="/baanerp/tt/aad/ttaad5100s000" role="session">Job Data (ttaad5100s000)</GUIRef> session, <GUIRef href="/baanerp/tt" role="package">Enterprise Server</GUIRef> starts the job at the scheduled date and time.</Paragraph>
			<List><ListIntro>If you selected the <GUIRef href="" role="manual">Use External Sched</GUIRef> check box in the <GUIRef href="/baanerp/tt/aad/ttaad5100s000" role="session">Job Data (ttaad5100s000)</GUIRef> session, you can 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 run the job in your own user environment (bshell):</SectionTitle>
			<ProcedureList><ListItem>Start the <GUIRef href="/baanerp/tt/aad/ttaad5500m000" role="session">Job Data (ttaad5500m000)</GUIRef> session and select the job.</ListItem>
				<ListItem>On the <GUIRef href="" role="manual">Specific</GUIRef> menu, click <GUIRef href="" role="manual">Activate</GUIRef>. The <GUIRef href="/baanerp/tt/aad/ttaad5203m000" role="session">Activate Job (ttaad5203m000)</GUIRef> session starts.</ListItem>
				<ListItem>Check the job data and click <GUIRef href="" role="manual">Activate Job</GUIRef> to start the job.</ListItem>
			</ProcedureList>
			<Paragraph>If you scheduled the job for a specific date and time, the job starts at the specified time. The job's status changes to <GUIRef href="" role="manual">Waiting</GUIRef>.</Paragraph>
			<Paragraph>If you did not specify a time, the job starts immediately. The job's status changes to <GUIRef href="" role="manual">Running</GUIRef>.</Paragraph>
			<Paragraph>In both cases, you can only close the <GUIRef href="/baanerp/tt/aad/ttaad5203m000" role="session">Activate Job (ttaad5203m000)</GUIRef> session when the job is finished.</Paragraph>
		</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/000038" role="manual">To define a job</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/000042" role="manual">To cancel a job</Link>
		</RelTopic>
	</RelatedTopics>
</ManualTopic>
