Environment Variables


The CPI-C interface can be influenced by the following environment variables. They are not available if you are implementing the SAP Gateway on the BS2000 host.


In the following the environment variables are listed with short explanations and value range.

This variable defines the maximum number of CPI-C connections which the CPI-C API can administer.
Default value: 100

This variable defines the path and name of the side info table. Under UNIX and the SAP Gateway sets this variable in accordance with the value in the parameter gw/side_info.
Default values for UNIX and AS/400: /usr/sap/<SAP System>/<instance>/data/sideinfo

This variable sets the trace level of the CPI-C API.

Values 0, 1, 2 or 3 are valid:
0: No trace
1: Error trace
2: Complete process trace, short data trace
3: Complete process and data trace

The trace files can be found in the work directory.

Names of trace files:
(PID = Process number)
Default value: 0

This variable determines the directory in which the CPI-C trace files are created.. By default, the trace files are created in the current directory.

This variable determines whether, after closing a LU6.2 connection, a session should be retained or be closed as well. (Side info parameter KEEP_SESSION ).
For an R/2 host with an IMS system, the existing session cannot be closed.

Legal values:
0: Session is closed down
1: Session is retained in spite of instruction to the contrary

Variable for conversion table.
If you do not want to use standard tables, this variable lets you define your own conversion table for ASCII-EBCDIC conversion.

The CMCNVI and CMCNVO functions work with pre-defined standard tables.

This variable determines the time span in seconds after which a timeout is triggered during a connection setup.

Default value: 10

This variable determines whether the CPI-C interface can work with SAP Gateways arbeiten of R/3 Releases prior to 3.0. By default, this is possible.
In pure 3.0 installations, you can set this variable to the value 0. This setting will speed up error messaging during connection setup.

Legal values:
0: only SAP Gateways of R/3 Release 3.0
1: SAP-Gateways of R/3 Releases prior to vor 3.0

If you are using SAP’s SNC interface:

SNC name of the partner

Name of the SNC library

Alternative: Define Side Info Parameters