Setting environment variables

Before using the compiler, verify that the environment variables LANG, MANPATH, NLSPATH, and PATH are set.

To determine the current setting of these variables, use this command:
echo "\n $LANG \n\n $NLSPATH \n\n $MANPATH \n\n $PATH"
LANG

Specifies the national language for message files. See National language support.

The LANG environment variable can be set to any of the locales provided on the system.

The national language code for United States English is en_US. If the appropriate message catalogs was installed on your system, any other valid national language code can be substituted for en_US.

MANPATH

Optionally specifies the directory search path for finding man pages. See Enabling man pages for more information.

NLSPATH

Specifies the path name of the message files. See Enabling the error messages for more information.

PATH

Specifies the directory search path for the executable files of the compiler.

For example, when COBOL for Linux® on x86 is installed in the default location, to run the utilities (scu and gdgmgr), add the following directory to the PATH environment variable by entering this command:
export 
PATH=$PATH:installation_path/cobol/1.2.0/bin:/opt/ibm/cobol/rte/bin:/opt/ibm/cobol/debug/usr/bin
where installation_path is the target directory specified by the --prefix option of the nondefault installation command on RHEL or SLES, or the /opt/ibm directory under the root directory of chroot on Ubuntu.
Important: The LANG and NLSPATH environment variables are initialized when the operating system is installed and might differ from the ones you want to use.
Note: Additional environment variables may be required for building and running various COBOL applications. For more information, see Compiler and runtime environment variables in the IBM® COBOL for Linux on x86 Programming Guide.