ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzamy_5.4.0.1/50/admin/qshenvvar.htm

44 lines
2.4 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<LINK rel="stylesheet" type="text/css" href="../../../rzahg/ic.css">
<title>Qshell environment variables</title>
</head>
<BODY>
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h4><a name="qshenvvar"></a>Qshell environment variables</h4>
<p>WebSphere Application Server - Express provides Qshell environment variables that affect the scripts.</p>
<p>To set an environment variable for your Qshell session, run this command from the Qshell command line:</p>
<pre> export <em>variableName</em>=<em>value</em></pre>
<p>To unset an environment variable for your Qshell session, run this command from the Qshell command line:</p>
<pre> unset <em>variableName</em></pre>
<p><strong>Note:</strong>When you exit the Qshell session, the environment variable must be set again the next time you issue the STRQSH CL command.</p>
<p><strong>Note:</strong> You can also use a profile file to set variables. For more information, see <a href="qshadm.htm">Configure Qshell to run WebSphere Application Server - Express scripts</a>.</p>
<p>
<ul>
<li><p><strong>WAS_ADDL_JVM_ARGS</strong>
<br>If you set this variable, its value is appended to the Java virtual machine (JVM) arguments for all of the scripts that run a JVM. (All of the scripts except crtwasinst, dltwasinst, updwashost, enbprfwas, startServer, and lstwasinst run a JVM.) For example, this command:</p>
<pre>export WAS_ADDL_JVM_ARGS=&quot;-Dtrace=com.ibm.*=all=enabled -Xms256m&quot;</pre>
<p>enables tracing for the JVM that a script starts, and sets the minimum heap size for the JVM to 256 megabytes.</p></li>
<li><p><strong>WAS_USER_SCRIPT</strong>
<br>This variable specifies the path to a script that runs before a WebSphere Application Server - Express Qshell script runs. For example, if you want to append a /home/QSYS/classes.jar to the classpath for every script, you might create a script called /home/myDir/classpath.script. The script file contains this command:</p>
<pre>WAS_CLASSPATH=${WAS_CLASSPATH}:/home/QSYS/classes.jar</pre>
<p>After you create the script file, run this command to set the environment variable:</p>
<pre>export WAS_USER_SCRIPT=/home/myDir/classpath.script</pre></li>
</ul>
</p>
</body>
</html>