<!DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD DocBook V3.0-Based SolBook Subset V2.0//EN" [
<!--ArborText, Inc., 1988-1999, v.4002-->
<!ENTITY synopsis-common SYSTEM "synopsis-common.sgm">
<!ENTITY options-common SYSTEM "options-common.sgm">
<!ENTITY metainfo SYSTEM "metainfo.sgm">
<!ENTITY % commonents SYSTEM "smancommon.ent">
%commonents;
<!ENTITY % booktitles SYSTEM "booktitles.ent">
%booktitles;
<!ENTITY Dash "&ndash;">
]>
<?Pub UDT _bookmark _target>
<?Pub Inc>
<refentry id="export-1">
<refmeta><refentrytitle>export</refentrytitle><manvolnum>1</manvolnum>&metainfo;
</refmeta>
<refnamediv><indexterm><primary sortas="export ">export &mdash; marks a variable
name for automatic export to the environment of subsequent commands in multimode
</primary></indexterm><indexterm><primary sortas="marks a variable name for automatic export to the environment of subsequent commands in multimode">
marks a variable name for automatic export to the environment of subsequent
commands in multimode &mdash; export</primary></indexterm><refname>export
</refname><refpurpose>marks a variable name for automatic export to the environment
of subsequent commands in multimode</refpurpose></refnamediv>
<refsynopsisdiv><title>&synp-tt;</title>
<cmdsynopsis><command>export </command><arg> <replaceable>name=value </replaceable><arg
choice="opt"><replaceable> name=value</replaceable></arg><replaceable>*</replaceable></arg>
</cmdsynopsis></refsynopsisdiv>
<refsect1><title>&desc-tt;</title>
<para>The <command>export</command> command marks a variable name for automatic
export to the environment of subsequent commands. All subsequent commands
use the variable name value as specified unless you unset them or exit multimode.
If only the variable name is specified, the current value of that variable
name is displayed. If the <command>export</command> command is used without
any arguments, a list of all the exported variables and their values is displayed.
Exported shell environment variables set prior to invoking the <command>asadmin
</command> utility are imported automatically and set as exported variables
within <command>asadmin</command>. Unexported environment variables cannot
be read by the <command>asadmin</command> utility.</para>
</refsect1><?Pub Caret>
<refsect1><title>OPERANDS</title>
<variablelist termlength="medium">
<varlistentry><term><replaceable>name=value</replaceable></term><listitem>
<para>variable name and value for automatic export to the environment to be
used by subsequent commands.</para>
</listitem></varlistentry>
</variablelist></refsect1>
<refsect1><title>&exam-tt;</title>
<example>
<title>Using <command>export</command> command</title>
<screen>asadmin> <userinput>export</userinput>
AS_ADMIN_USER = admin
AS_ADMIN_HOST = bluestar
AS_ADMIN_PREFIX = server1.jms-service
AS_ADMIN_PORT = 8000</screen>
</example>
<example>
<title>using <command>export</command> command to set an environment variable
</title>
<screen>asadmin> <userinput>export AS_ADMIN_HOST=bluestar</userinput>
In this case, the AS_ADMIN_HOST environment variable has been set to bluestar.
</screen>
</example>
<example>
<title>Using <command>export</command> command to set multiple environment
variables</title>
<screen>asadmin> <userinput>export AS_ADMIN_HOST=bluestar AS_ADMIN_PORT=8000 
AS_ADMIN_USER=admin AS_ADMIN_PREFIX=server1.jms-service</userinput>
In this case, the environment variables have been set to:
host is set to bluestar
port is set to 8000
administrator user is set to admin
prefix is set to server1.jms-service</screen>
</example>
</refsect1>
<refsect1><title>EXIT STATUS</title>
<variablelist termlength="narrow">
<varlistentry><term>0</term><listitem><para>command executed successfully
</para>
</listitem></varlistentry>
<varlistentry><term>1</term><listitem><para>error in executing the command
</para>
</listitem></varlistentry>
</variablelist></refsect1>
<refsect1><title>&also-tt;</title>
<para><link linkend="unset-1"><citerefentry><refentrytitle>unset</refentrytitle>
<manvolnum>1</manvolnum></citerefentry></link>, <link linkend="multimode-1"><citerefentry>
<refentrytitle>multimode</refentrytitle><manvolnum>1</manvolnum></citerefentry></link></para>
</refsect1>
</refentry>
<?Pub *0000004240>
