Environment variables
The Infor Lawson programs use the following environment variables to represent the IFS directory names used by the system, as well as other system information.
Environmental variable name | Description |
---|---|
$LADBDIR | Used to represent the IFS directory named db. If your system was installed with the default directory names, the value of LADBDIR is /EnvironmentDirectory/db. |
$GENDIR | Used to represent the IFS directory named gen. If your system was installed with the default directory names, the value of GENDIR is /EnvironmentDirectory/gen. |
$LAWDIR | Used to represent the IFS directory named law. If your system was installed with the default directory names, the value of $LAWDIR is /EnvironmentDirectory/law. |
$LAWIPC | Used to represent the value of the Process Identifier associated with your Lawson Environment. |
$CGIDIR | Used to represent the IFS directory named cgi-bin. If your system was installed with the default directory names, the value of CGIDIR is /EnvironmentDirectory/gen/cgi-bin. |
$RPGPRODUCTLINE | Used to represent the product line associated with your Lawson Environment. |
$LAWAPPSRCLIB | Used to refer to the IBM i library that contains the work file source. |
$LAWAPPPGMLIB | Used to refer to the IBM i library that contains the compiled RPG programs and modules. |
To change the environment variables, you use the LAWENVM
program (Signon Environment Maintenance). This program stores the
environment variable settings for each Environment in the etc/lawson.env
file. Never edit the etc/lawson.env file directly. Always use LAWENVM
.
Whenever you use the Lawson system, the environment variables must be set correctly for your session or your system will not function properly. When you use the Lawson Interface Desktop (LID), the system sets the environment variables through the port that was configured during the installation of the Environment.
If you log in to Lawson Environments through Client Access,
you must run the Environment utility program LAWENV
to properly set the environment variables and library list. You
must run this program or the system will not work properly when you
try to use Lawson utilities or compile Lawson programs.
LAWENV
as an initial sign-on program for any system administrators
or programmers who need to access the Environment through Client Access.