Windows Environment variables

Lists environment variables related to configuring Enterprise Server for a Windows environment.

COBPRFDIR

Location of .ipf files created by programs compiled with the PROFILE compiler directive.
Syntax
COBPRFDIR=path-name[[;path-name][...]]
Parameter
path-name
The full path of a directory to search.
Default
Not set. .ipf files are created in and expected to be in the current working directory.

COBPATH

Specifies the directory or directories that the run-time system searches for dynamically loadable .int and .gnt files, or callable shared objects.
Syntax
COBPATH=path-name[;path[...]]
Parameter
path-name
The full or relative path to a directory for the run-time system to search for a dynamically loadable program (.int, .gnt or callable shared object) file.
Default
None. Dynamically set based on enterprise server region configuration.
Comments
This environment variable is set in the system registry. You can change the values using the SET command, but values you set are only added to the values already set in the registry.

When more than one path-name is specified, a null path name represents the current working directory.

Example
COBPATH=C:\mydir\srclib;;\otherlib

COBSW

Specifies the run-time system switch settings for the run-time system to observe when running an application.
Syntax
COBSW={+|-}switch[...]
Parameters
+
Sets the switch.
-
Unsets the switch.
switch
A run-time switch. See Run-time Switches for details.
Default
COBSW=-A
Example
This example enables run-time switch 0 and the ANSI COBOL debug switch:
COBSW=+0+D

DB2DBDFT

The default database against which the DB2 SQL preprocessor processes SQL statements.
Syntax
DB2DBDFT=path-name/database-name
Parameters
path-name
The location of the default database.
database-name
The name of the default database.
Default
Not set. Uses the database name specified in the project.

ENTRYNAMEMAP

Specifies the locations of entry-name map files to use.
Important: You must set the entry_point_mapper tunable to enable entry-point mapper support. See entry_point_mapper for details.
Syntax
ENTRYNAMEMAP={file-name|directory}[;...]
Parameters
file-name
The name of the entry-name map file.
directory
A directory containing an entry-name map file. The name of the entry-name map file must be mfentmap.dat.
Default
Not set. The run-time system searches for an entry-name map file called mfentmap.dat in each directory specified by the COBDIR environment variable.
Comments
If the run-time system finds more than one entry-name map file, and the same entry point is defined differently in different files, precedence is given to the definition in the entry-name map file that was found first. To change the order in which the run-time system finds entry name map files you need to change the order in which the files appear in the COBDIR or ENTRYNAMEMAP environment variable paths.

ES_CONSOLE_LOG (deprecated)

ES_CONSOLE_LOG (deprecated)
Sends console messages to the Windows Event Log.
Note: ES_CONSOLE_LOG is deprecated, and provided for backward compatibility only. We recommend that you use MFDS configuration options instead. For details, see the Windows Monitoring and Management section in the General Properties topic.
ES_CONSOLE_LOG={I|W|E|S}[...]
Parameters
I
Send informational messages to the Windows Event Log.
W
Send warning messages to the Windows Event Log.
E
Send error messages to the Windows Event Log.
S
Send severe messages to the Windows Event Log.
Default
Not set. No console messages are sent to the Windows Event log.

LANG

Specifies the locale.
Syntax
LANG=win-language[_territory[.code-page]]
Parameters
win-language
The spoken/written language in which your program is to run. This determines which message catalog is open so that if an error occurs, the error message is output in the selected language. win-language can take any of the following values:
Value Language
1 US English
2 Canadian French
3 Danish
4 Dutch
5 UK English
6 Finnish
7 French
8 German
9 Italian
10 Norwegian
11 Portuguese
12 Spanish
13 Swedish
territory
The country in which your program is to run.
code-page
The character set code to use for your program.
Default
Not set.
Example
LANG=7

MFLOGDIR

Specifies a directory to be used by Client/Server Binding for log files.
Syntax
MFLOGDIR=path-name
Parameter
path-name
The full path to the location of log files.
Default
Not set.
Example
MFLOGDIR=d:\mydir\logs

MFRU_NOINHERIT

Determines whether to skip registering processes in shared memory during initialization of the run-time system.
Syntax
MFRU_NOINHERIT={Y|TRUE}
Parameters
Y|TRUE
Do not register processes in shared memory during initialization of the run-time system.
Default
Not set. Processes are registered.
Comments
Consider setting this variable to avoid COBRT105 errors, which can occur during initialization if a very large number of COBOL processes are running and there are no available slots in the shared memory segment.

When set, various run-time settings such as switches, shared memory, console window settings, and so on, are no longer inherited by any child processes.

MFUSER

Enables you to change the user from the default User ID to an alternative ID.

OOSW

OO run-time switches.

XFHLOG

Determines the location of the log file when the LOG option is active.
Syntax
XFHLOG=DEFAULT
Parameter
DEFAULT
Generates the log file in the current working directory.
Default
Not set. The log file is generated in %ProgramData%\Micro Focus\File Handler\version-number, where version-number represents the version of your Micro Focus product.
Comments
The effect of this variable can be overridden by the LOGFILENAME configuration option.