<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/da/onlinemanual/000020" xml:lang="en">
	<Header>
		<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Exchange scheme designers information</Title>
		<Keyword ContextSensitive="No"><Level1>Exchange</Level1>
		</Keyword>
	</Header>
	<GeneralSection><Paragraph class="Default">In the <GUIRef href="/baanerp/da/xch/daxch0121s000" role="session">Table Relations (Import) (daxch0121s000)</GUIRef> session you can enter a name of a session or 4GL program in the <GUIRef href="" role="manual">Program Name</GUIRef> field. If you want to overrule the generated script, you can program the exchange script yourself. If you want to create your own script, you can use the following information which describes the interface between the <GUIRef href="/baanerp/da/xch/daxch0223m000" role="session">Import Data (Non-Regular) (daxch0223m000)</GUIRef> and <GUIRef href="/baanerp/da/xch/daxch0224m000" role="session">Import Data (on a Regular Basis) (daxch0224m000)</GUIRef> sessions.</Paragraph>
		<GeneralSection><SectionTitle>Program Interface</SectionTitle>
			<Paragraph class="Default">From the above mentioned sessions the following variables are passed as parameters to the session or 4GL program:</Paragraph>
			<TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated"><THEAD><TR><TD rowspan="1" colspan="1">arg</TD>
						<TD rowspan="1" colspan="1">type</TD>
						<TD rowspan="1" colspan="1">description</TD>
					</TR>
				</THEAD>
				<TBODY><TR><TD rowspan="1" colspan="1">1</TD>
						<TD rowspan="1" colspan="1">domain daxch.cxch</TD>
						<TD rowspan="1" colspan="1">exchange scheme</TD>
					</TR>
					<TR><TD rowspan="1" colspan="1">2</TD>
						<TD rowspan="1" colspan="1">domain daxch.cbat</TD>
						<TD rowspan="1" colspan="1">batch</TD>
					</TR>
					<TR><TD rowspan="1" colspan="1">3</TD>
						<TD rowspan="1" colspan="1">domain daxch.batl</TD>
						<TD rowspan="1" colspan="1">batch line</TD>
					</TR>
					<TR><TD rowspan="1" colspan="1">4</TD>
						<TD rowspan="1" colspan="1">domain daxch.txch</TD>
						<TD rowspan="1" colspan="1">exchange type: (non-)regular ex- or import</TD>
					</TR>
					<TR><TD rowspan="1" colspan="1">5</TD>
						<TD rowspan="1" colspan="1">long</TD>
						<TD rowspan="1" colspan="1">current run number</TD>
					</TR>
					<TR><TD rowspan="1" colspan="1">6</TD>
						<TD rowspan="1" colspan="1">long</TD>
						<TD rowspan="1" colspan="1">current try number</TD>
					</TR>
					<TR><TD rowspan="1" colspan="1">7</TD>
						<TD rowspan="1" colspan="1">long</TD>
						<TD rowspan="1" colspan="1">processing company: the company data is exported from or imported to</TD>
					</TR>
					<TR><TD rowspan="1" colspan="1">8</TD>
						<TD rowspan="1" colspan="1">long</TD>
						<TD rowspan="1" colspan="1">startup company: the company the Exchange (XCH) module is running in</TD>
					</TR>
					<TR><TD rowspan="1" colspan="1">9</TD>
						<TD rowspan="1" colspan="1">domain daxch.redo</TD>
						<TD rowspan="1" colspan="1">processing type (new run, restart, reprocess or continue)</TD>
					</TR>
					<TR><TD rowspan="1" colspan="1">10</TD>
						<TD rowspan="1" colspan="1">domain daxch.yesno</TD>
						<TD rowspan="1" colspan="1">reprocess error rejected records?</TD>
					</TR>
					<TR><TD rowspan="1" colspan="1">11</TD>
						<TD rowspan="1" colspan="1">domain daxch.yesno</TD>
						<TD rowspan="1" colspan="1">reprocess condition rejected records?</TD>
					</TR>
					<TR><TD rowspan="1" colspan="1">12</TD>
						<TD rowspan="1" colspan="1">domain daxch.yesno</TD>
						<TD rowspan="1" colspan="1">wait for &lt;CR&gt; with messages?</TD>
					</TR>
					<TR><TD rowspan="1" colspan="1">13</TD>
						<TD rowspan="1" colspan="1">string</TD>
						<TD rowspan="1" colspan="1">calling program: daxch0227</TD>
					</TR>
				</TBODY>
			</TABLE>
		</GeneralSection>
		<Note><SectionTitle>
                                 Note
                              </SectionTitle>
			<List><ListItem>Do NOT import the form variables: adat.f, adat.t, atim.f, atim.t. They can and will differ from the actual audit interval, for example in a job.</ListItem>
				<ListItem>It is assumed that the log file is updated by the subprocess (in company process.comp) and that the variable stop.processing is exported to the parent process (by the subprocess) if necessary. Refer to session <GUIRef href="/baanerp/da/xch/daxch0510s000" role="session">Predefined Functions/Variables (daxch0510s000)</GUIRef> for information on how to update the log file.</ListItem>
				<ListItem>If processing type = new run, then try number = 1; otherwise try number &gt; 1.</ListItem>
				<ListItem>If processing type = reprocess, then at least one of argument 10 and 11 will be yes, otherwise both will be no.</ListItem>
			</List>
		</Note>
	</GeneralSection>
</ManualTopic>
