lawson.env reference

File Layout of /etc/lawson.env

lawson.env file element What it means
_Global Indicates that the environment variable settings apply globally to all Environments. If a variable is set differently in a particular Environment, the local Environment's setting overrides the _Global default for that Environment only.
Active list of environments A list of the Environments that users can scroll through using the Change Environment (. cv) command.
Default environment The default Environment for users who have access to the command line. Users automatically go into this Environment when they first execute the Change Environment command after logging in, unless their startup file has been modified to override this default.
environment The name of an Environment. Defines the beginning of a list of Environment variables that apply to a specific Environment.
Set variable value Sets the value for an environment variable.
Keep variable value Sets the value for an environment variable, if it is not already set. If the variable is already set, the new value defined here does not take effect.
Unset variable Clears a variable setting.

/etc/lawson.env Variables

The values for the following variables for each Environment in the /etc/lawson.env file may be reset or verified if changes are made after installation:

Variable Description
$GENDIR The path to the directory where your Infor Lawson Environment utilities, original server configuration files, and Infor Lawson SQL scripts are stored.
$LAWDIR The path to the directory where your Infor Lawson applications, configuration files, and spooled print output are stored.
$LADBDIR The path to the directory where your Infor Lawson database and dictionary files are stored.
$LAWENVNAME The name of the Environment
$LAW_JAVA_HOME

The path to the Java SDK

Example:

/opt/java15

$LAW_JAVA_BIN

The path to the platform-specific Java executables

Examples:

/opt/java15/bin/IA64W

/opt/java15/bin/PA_RISC2.0

Note: For customers installing Infor Lawson System Foundation 9.0.1 for the first time, the path for LAW_JAVA_BIN is automatically set upon running the Infor Lawson Core Technology installation program. However, customers upgrading from 9.0 must manually add LAW_JAVA_BIN to /etc/lawson.env and all other scripts where LAW_JAVA_HOME is used.

Shared Libraries

The installation procedure also puts shared library information in the /etc/lawson.env during installation and upgrades.

Shared Library Path

The Environment specified in /etc/lawson.env must include definition of the shared library path variable for the platform for which the Environment is running.

The definition of the shared library path must include all Infor Lawson, third-party, and database system shared libraries. Relative paths may not be used.

The name of this variable is as follows for the platforms named:

  • On Hewlett-Packard HP-UX for PA-RISC processors

    $SHLIB_PATH

  • On Hewlett-Packard HP-UX Integrity

    $LD_LIBRARY_PATH

  • On IBM AIX

    $LIBPATH

  • On Solaris

    $LD_LIBRARY_PATH

    See your platform documentation for the correct shared library path variable.

Sample /etc/lawson.env file for Hewlett-Packard HP-UX (PA-RISC processors)

Set SHLIB_PATH/usr/lib:${GENDIR}/lib/shared:${COBDIR}/
coblib:${ORACLE_HOME}/lib:${ARBORPATH}/bin:/opt/taxware/api/
commonapi

Other /etc/lawson.env Variables

After installation, if the setup at your organization requires other variables, add them to the/etc/lawson.env by editing the file. Variables you may need to add or edit during configuration or because of ongoing maintenance include:

LAWIPC

Value used in inter-process communication. Its primary function is to ensure that programs in each Environment communicate with the correct message queues. Each Infor Lawson Environment must have a unique LAWIPC setting. When you install an Environment, the default value of LAWIPC is 7. Before you install a second Environment, change the LAWIPC setting for the first Environment to some number other than 7.

The LAWIPC value may be in hexadecimal form.

TMPDIR The directory in which COBOL sort files are stored.
Third-party product interface variables

In some cases, Environment variables are required by third-party products that interface with Infor Lawson, including a database (such as Oracle® or DB2®), a data analysis tool (such as Hyperion®), or BSI TaxFactory™). You would typically change these variables when you are installing Infor Lawson. The installation instructions tell you what changes are needed.

Examples include $COBDIR, which is the path for Micro Focus Server Express COBOL and $ORACLE_HOME, which is the path for the Oracle program.

Sample /etc/lawson.env with multiple Environments

# Environment TST1
TST1
{
  Set GENDIR         /techcst1/univ
  Set LAWDIR         /techcst1/apps
  Set LADBDIR        /techcst1/DB
  Set COBDIR         /opt/cobolse5-64
  Set LIBPATH        /usr/java15
  Set LAWIPC         0xa1
  Set LAWENVNAME     TST1
  Set PA2            /techcst1/univ/bin:/opt/sql/db2v8/sqllib/bin:
                     ${COBDIR}/bin
  Set PR2            90bldR-tst1
  Set DB2INSTANCE    db2v7
# Set ORACLE_HOME    /opt/sql/oracle/app/oracle/product/v10g
# Set ORACLE_SID     csto7
  Set LAW_JAVA_HOME  /opt_java5_64
  Set LAW_JAVA_BIN   /opt_java5_64/bin
}
# Environment TST2
TST2
{
  Set GENDIR         /techcst2/univ
  Set LAWDIR         /techcst2/apps
  Set LADBDIR        /techcst2/DB
  Set COBDIR         /opt/cobolse5-64
  Set LIBPATH        /usr/java15
  Set LAWENVNAME     TST2
  Set LAWIPC         0xa2
  Set PA2            /techcst2/univ/bin:${ORACLE_HOME}/bin:
                     ${COBDIR}/bin
  Set PR2            90bldD-tst2
  Set DB2INSTANCE    db2v8
  Set LAW_JAVA_HOME  /opt_java5_64
  Set LAW_JAVA_BIN   /opt_java5_64/bin
}
#