<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/tt/onlinemanual/var_resource_set" xml:lang="en" UserLevel="Expert">
	<Header>
		<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">To set environment variables and resources</Title>
		<Keyword ContextSensitive="No"><Level1>Variables</Level1>
			<Level2>set</Level2>
		</Keyword>
		<Keyword ContextSensitive="No"><Level1>Variables</Level1>
			<Level2>configure</Level2>
		</Keyword>
		<Keyword ContextSensitive="No"><Level1>Resources</Level1>
			<Level2>set</Level2>
		</Keyword>
		<Keyword ContextSensitive="No"><Level1>Resources</Level1>
			<Level2>configure</Level2>
		</Keyword>
	</Header>
	<GeneralSection><List><ListIntro>Environment variables can be set in various ways:</ListIntro>
			<ListItem>Users can set their own variables.</ListItem>
			<ListItem>Administrators can define global variables for all users.</ListItem>
		</List>
		<Important><SectionTitle>
                                 Important!
                              </SectionTitle>
			<Paragraph class="Default">If the same variable is set twice, as a global variable and as a user variable, the setting of the user variable overrules the global variable.</Paragraph>
		</Important>
	</GeneralSection>
	<GeneralSection><SectionTitle>To set user variables</SectionTitle>
		<Paragraph class="Default">
                              WebTop users can set variables in their WebTop user profiles. WorkTop users can set variables in their Infor BW configuration.</Paragraph>
		<Paragraph class="Default">To set a variable, a user must enter the following syntax in the <GUIRef href="" role="manual">Command</GUIRef> field in the WebTop user profile or in the BW configuration:</Paragraph>
		<Paragraph class="Default"><Code>-set &lt;variable name&gt;=&lt;value&gt;</Code>
		</Paragraph>
		<Paragraph class="Default">For example:</Paragraph>
		<Paragraph class="Default"><Code>-set BSE_COMPNR=150</Code>
		</Paragraph>
		<Paragraph class="Default">To set multiple variables, a user must enter the following syntax:</Paragraph>
		<Paragraph class="Default"><Code>-set &lt;variable name1&gt;=&lt;value1&gt; -set &lt;variable name2&gt;=&lt;value2&gt;</Code>
		</Paragraph>
		<Paragraph class="Default">For example:</Paragraph>
		<Paragraph class="Default"><Code>-set BSE_COMPNR=150 -set BSE_LANG=3</Code>
		</Paragraph>
	</GeneralSection>
	<GeneralSection><SectionTitle>To set global variables</SectionTitle>
		<GeneralSection><SectionTitle>UNIX/Linux</SectionTitle>
			<GeneralSection><SectionTitle>Global variables for all ERP LN environments</SectionTitle>
				<Paragraph class="Default">On a UNIX/Linux platform, administrators can set system wide variables in the /etc/profile file. These variables apply to all ERP LN environments on the system. The following syntax must be used:</Paragraph>
				<CodeBlock space-and-orientation="indented-estimated">&lt;variable name&gt;=&lt;value&gt;
export &lt;variable name&gt;
</CodeBlock>
				<Paragraph class="Default">For example:</Paragraph>
				<CodeBlock space-and-orientation="indented-estimated">BSE_TMP=${BSE}/tmp
export BSE_TMP</CodeBlock>
			</GeneralSection>
			<GeneralSection><SectionTitle>Global variables for a single ERP LN environment</SectionTitle>
				<Paragraph class="Default">Administrators can set the variables for a single ERP LN environment in the ${BSE}/lib/bse_vars file of that environment. The following syntax must be used:</Paragraph>
				<Paragraph class="Default"><Code>&lt;variable name&gt;=&lt;value&gt;</Code>
				</Paragraph>
				<Paragraph class="Default">For example:</Paragraph>
				<Paragraph class="Default"><Code>SLMHOME=/usr/slm</Code>
				</Paragraph>
			</GeneralSection>
		</GeneralSection>
		<GeneralSection><SectionTitle>Windows</SectionTitle>
			<Paragraph class="Default">On a Windows platform, administrators can set variables in the Enterprise Server Service Manager.</Paragraph>
			<ProcedureList><ListIntro>Alternatively, administrators can set system wide variables in the <GUIRef href="" role="manual">Environment Variables</GUIRef> dialog. To start this dialog, complete the following steps:</ListIntro>
				<ListItem>Right-click <GUIRef href="" role="manual">My Computer</GUIRef> and, on the shortcut menu, click <GUIRef href="" role="manual">Properties</GUIRef>. The <GUIRef href="" role="manual">System Properties</GUIRef> dialog appears.</ListItem>
				<ListItem>Go to the <GUIRef href="" role="manual">Advanced</GUIRef> tab and click <GUIRef href="" role="manual">Environment Variables</GUIRef>.</ListItem>
			</ProcedureList>
		</GeneralSection>
		<GeneralSection><SectionTitle>
                                 WebTop
                              </SectionTitle>
			<Paragraph class="Default">In the WebTop Administration Console, administrators can define global variables for all WebTop users. The variables must be set in the <GUIRef href="" role="manual">Command</GUIRef> field in the Infor ERP Environment properties. For details, refer to <DocRef>Infor WebTop 8.5 for ERP LN Installation and Configuration Guide (U8715 US)</DocRef>.</Paragraph>
			<Paragraph class="Default">The syntax to set a variable is identical to the syntax used in BW configurations and WebTop user profiles. For details, refer to “To set user variables” in this chapter.</Paragraph>
		</GeneralSection>
	</GeneralSection>
	<GeneralSection><SectionTitle>To set resources</SectionTitle>
		<Paragraph class="Default">Resources are more static than environment variables and cannot be defined by end users.</Paragraph>
		<Paragraph class="Default">Administrators can set resources in the following files:</Paragraph>
		<TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated"><THEAD><TR><TD rowspan="1" colspan="1">File</TD>
					<TD rowspan="1" colspan="1">Description</TD>
				</TR>
			</THEAD>
			<TBODY><TR><TD rowspan="1" colspan="1">${BSE}/lib/user/u&lt;user&gt;</TD>
					<TD rowspan="1" colspan="1">
						<Paragraph class="Default">The user file of a specific user. Administrators can edit this file to set resources for a user.</Paragraph> <Paragraph class="Default">
                                          Note:</Paragraph> <Paragraph class="Default">Resource settings that were added manually are lost when the user data is converted to runtime.</Paragraph>
					</TD>
				</TR>
				<TR><TD rowspan="1" colspan="1">${BSE}/lib/defaults/&lt;binary&gt;</TD>
					<TD rowspan="1" colspan="1">
						<Paragraph class="Default">This is for internal use by Infor only.</Paragraph> <Paragraph class="Default">For example, resources for the bshell6.2 executable can be set in the ${BSE}/lib/defaults/bshell6.2 file.</Paragraph>
					</TD>
				</TR>
				<TR><TD rowspan="1" colspan="1">${BSE}/lib/defaults/db_resource</TD>
					<TD rowspan="1" colspan="1">
						<Paragraph class="Default">This file is used to set database driver related resources, such as rds_full, lock_retry, and use_shm_info.</Paragraph>
					</TD>
				</TR>
				<TR><TD rowspan="1" colspan="1">${BSE}/lib/defaults/all</TD>
					<TD rowspan="1" colspan="1">
						<Paragraph class="Default">This file is used to set remaining global resources.</Paragraph>
					</TD>
				</TR>
			</TBODY>
		</TABLE>
		<Paragraph class="Default">To set a resource in the files mentioned, the following syntax must be used:</Paragraph>
		<Paragraph class="Default"><Code>&lt;resource name&gt;:&lt;value&gt;</Code>
		</Paragraph>
		<Paragraph class="Default">For example:</Paragraph>
		<Paragraph class="Default"><Code>use_shm_info:0</Code>
		</Paragraph>
		<Note><SectionTitle>
                                 Note
                              </SectionTitle>
			<Paragraph class="Default">To overrule a resource, users can use the corresponding environment variable in their WebTop user profile or BW configuration.</Paragraph>
		</Note>
	</GeneralSection>
</ManualTopic>
