These environment variables relate to configuring the input and output and the display.
Syntax
set CCITCP2=hostname
Parameters
hostname is the TCP hostname or dotted decimal IP address of the machine running the CCITCP2 daemon you wish to contact from that session.
Comments
The environment variable value will always take precedence over any value set using the Configuration Utility. To restore a process to using the value set by the Configuration Utility simply set the environment variable to an empty string, such as
set CCITCP2=
Alternatively, if this environment variable is set system-wide (by creating a system variable in the system environment settings, or by using a CONFIG.SYS file) then this value will always take precedence over any value set using the Configuration Utility.
Syntax
set CCITCP2_PORT=port
Syntax
CCITRACE=[options]
/F or -F | Logs the details of CCI API calls to the trace file. The default is OFF, unless any other trace option is specified, in which case it is always ON. |
/P or -P | Logs the details of protocol-level calls to the trace file. The default is OFF. If this flag is OFF, then only the details of the CCI user-level API will be traced. If this flag is ON, the level of function tracing can be increased. |
/D or -D | Logs the contents of all buffers passed to and from the CCI functions. The default is OFF. Data tracing might not be allowed if the application has been coded to prohibit data tracing for security reasons. |
The CCI.INI file can also be used to control trace options, but any values specified by the CCITRACE environment variable will take precedence.
Specifies a run-time configuration file that tailors the run-time configurable options in some way.
Syntax
SET COBCONFIG=pathname
Parameters
Comments
If $COBCONFIG is not set then the file $COBDIR/etc/cobconfig is searched for instead.
Example
SET COBCONFIG=/home/mydir/cobconfig
Values
Specifies the directory where the required Micro Focus COBOL system is installed. Many of the COBOL system components and utilities require and use this information. If the COBDIR environment variable is not set then the COBOL system acts as if it had been set to the default COBOL system directory.
SET COBDIR=pathname
Parameters
Comments
The Micro Focus COBOL system is normally installed in the default COBOL system directory and so does not require COBDIR to be set. COBDIR only needs to be set when your COBOL system has been installed in a different directory such as when more than one version of the COBOL system is available at the same time.
Example
SET COBDIR=/home/products/cobse20
This causes the Cob utility to search the directory /home/products/cobse20 for the Micro Focus COBOL system software.
Specifies the maximum elapsed time, in tenths of a second, for the connected terminal to transmit any valid escape sequence to the run-time system.
When a terminal key is depressed, the terminal might send in response a single character or a group of characters to the run-time system. Typically, such a group of characters starts with an escape character and the group of characters is known as an escape sequence. A terminal might send an escape sequence for one depression of a function key. It might also send the same sequence of characters for a depression of the Escape key followed by the depression of one or more alphabetic or numeric data keys. The only difference apparent to the run-time system is the interval between the arrival of each character; the user cannot type as fast as the escape sequence is generated by the terminal.
If a terminal is connected over a network that sends the characters to the run-time system in discrete packets, then the network can alter the intervals between each character arriving at the run-time system. COBKEYTIMEOUT is available to help compensate for typical network delays so the run-time system identifies escape sequences correctly.
Syntax
SET COBKEYTIMEOUT=n
Parameters
n A number in the range 1 through 126 that represents the maximum elapsed time required for a terminal to transmit any valid escape sequence to the run-time system over the line or network connection. On encountering a lone Escape character, the run-time system waits n tenths of a second before assuming that the character does not introduce an escape sequence. The run-time system calculates an appropriate default value for n from the baud rate of the terminal.
Example 1:
COBLPFORM 1:3:5:7:9:11:13:15:17:19:21:23
In this example C01 equals 1, C02 equals 3, and so on.
Example 2:
COBLPFORM :3::5: :9
In this example, C01 equals 3, C02 equals 5, C03 equals 1, and C04 equals 9. You can specify only a single line number for each channel.
In example 2 above, channels C05 - C12 are undefined. If a print statement specifies channel C05 - C12, the line is printed at line 1. In addition, in the example shown, C03 equals 1 because its value is a space and therefore undefined.
Any WRITE BEFORE/AFTER PAGE statements cause positioning to be at line 1. Each line advance increases the line number by one. A request to skip to a line number less than or equal to the current line causes a new page to begin. The appropriate number of line feeds are then generated.
This variable is used to specify the size of the main stack.
Syntax
SET COBMAINSTACK=n
Parameters
n - The size, in bytes, of the stack.
The main stack size defaults to three times the size of a threaded stack. The size of a threaded stack is either specified when the stack is created (using CBL_THREAD_CREATE), or it defaults to 160KB for a 32-bit application or 320KB for a 64-bit application.
You might need to set COBMAINSTACK in any of the following circumstances:
Syntax
COBMODE=mode; export COBMODE
Parameters
mode = 32 or 64.
Example
COBMODE=32; export COBMODE
Specifies the directory or directories that the run-time system is to search for dynamically loadable .int and .gnt files, or callable shared objects.
Syntax
SET COBPATH=pathname[:pathname]...
Parameters
pathname A list of search directories, each item separated by a semicolon, that the run-time system is to search for a dynamically loadable program (.int, .gnt or callable shared object) file. When more than one pathname is specified, a null pathname represents the current working directory.
Example
SET COBPATH=u:/home/mydir/srclib:otherlib
Specifies the name of a print spooler that is to receive, via its standard input stream (stdin), output from any DISPLAY UPON PRINTER statement.
Syntax
SET COBPRINTER=command-line
Parameters
Comments
Each DISPLAY UPON PRINTER statement executed by your COBOL program causes a new invocation of command-line. Each invocation receives the data referenced in the DISPLAY statement, and is followed by a system end-of-file condition.
Example
SET COBPRINTER="myspooler -a $TMPDIR\spoolfile"
Syntax
SET COBSW=[+/-}s...
A list of the run-time switches to set or unset.
Example
SET COBSW=+0+D
This enables run-time switch 0 and the ANSI COBOL debug switch.
SET ES_CAS_API=value
The utility will attempt to log messages.
ES_CONSOLE_LOG=port export ES_CONSOLE_LOG
Can be any combination of the following:
ES_ESMAC_DISP_MAX_OVERRIDE=value
ES_MAX_CATALOG_LINES=number
SET ES_OTMA_TIMEOUT=seconds
Syntax
ES_SEP_DORMANT_TIME=seconds
Values
Default
Transient SEPs are terminated after 2 seconds of inactivity.
Syntax
ES_SERVER=name
Values
Default
ESDEMO/ESDEMO64
Syntax
SET ES_USR_DFLT_ESMAC=user
Values
Default
mfuser
Syntax
ES_ESM_DISABLE_DFLTUSER_ESMAC=value
Values
Default
Default ESMAC user is not disabled.
Syntax
SET MAINFRAME_FLOATING_POINT=fpstatus
Parameters
fpstatus Which format to use for floating point data items. This must be one of:
Setting MAINFRAME_FLOATING_POINT to anything other than true has the same effect as setting it to false.
The setting of this environment variable can be overridden by the NATIVE-FLOATING-POINT directive.
Country Code (MFCODESET) |
EBCDIC CCSIDs | Language |
---|---|---|
AUTOMATIC
AUTO |
Operating system default - sets country code based on CBL_GET_OS_INFO | |
DEFAULT | Set to 0437 (US English) on Windows, or 0081 (Japanese Katakana Extended) on Japanese Windows. | |
0031 | 37, 1140 | Dutch |
0033 | 297, 1147 | French |
0034 | 284, 1145 | Spanish |
0039 | 280, 1144 | Italian |
0043 | 273, 1141 | German (Austrian) |
0044 | 285, 1146 | UK English |
0045 | 277, 1142 | Danish |
0046 | 278, 1143 | Swedish |
0047 | 277, 1142 | Norwegian |
0049 | 273, 1141 | German |
0066 | 838 | Thai Extended |
0081† | 930 (290, 300) | * Japanese Katakana Extended |
0082 | 933 (833, 834) | *Korean |
0086 | 13676 (836, 837) | *Simplified Chinese |
0351 | 37, 1140 | Portuguese |
0358 | 278, 1143 | Finnish |
0420 | 420 | Arabic
See Arabic Support Considerations below. |
0437 | 37, 1140 | US English |
0500 | 500, 1148 | International (Latin 1) |
0886 | 937 (37, 835) | *Traditional Chinese |
0930 † | 930 (290, 300) | *Japanese Katakana Extended |
0939 † | 939 (1027, 300) | *Japanese Latin Extended |
9122 † | 9122 (290, 300) | *Japanese Katakana |
Character sets marked with an asterisk (*) are capable of mixed single-byte and double-byte character translation. EBCDIC CCSIDs in these rows indicate the mixed-byte CCSID first, followed by the single-byte, then double-byte Code Page Global Identifiers (CPGIDs) in parenthesis.
Other EBCDIC CCSIDs in parentheses reflect a 'non-Euro, Euro' pair for appropriate country codes.
For database applications using a DBMS server on Windows, use the table above.
Country Code
(MFCODESET) |
EBCDIC CCSIDs | Languages |
---|---|---|
1140 | 37,1140 | Dutch US English Portuguese |
1141 | 273,1141 | German (Austrian) German |
1142 | 277,1142 | Danish Norwegian |
1143 | 278,1143 | Swedish Finnish |
1144 | 280,1144 | Italian |
1145 | 284,1145 | Spanish |
1146 | 285,1146 | UK English |
1147 | 297,1147 | French |
1148 | 500,1148 | International (Latin 1) |
If you are not using UK or US language settings, you must also set the codepage in your PC environment settings:
Syntax
SET MFCSCFG=filename
Parameters
filename The name of the configuration file.
Example
SET MFCSCFG=/home/mydir/mfclisrv.cfg
Comments
The value of MFCSCFG is overridden by any value defined in the command line. If neither of the above yields a filename, the default filename mfclisrv.cfg is assumed, and is searched for in the current directory. If that in turn is not found, the default settings for the configuration entries are used.
Syntax
SET MFLOGDIR=dirname
Parameters
dirname The name of the directory for log files.
Example
SET MFLOGDIR=/home/mydir/logs
Specifies a configuration file for Language Environment (LE) run-time options.
Syntax
SET MFLECONFIG=filename
Parameters
filename The file containing the LE run-time options you want to use.