Environment variables

In addition to command line switches, you must also set the following environment variables listed in Table 2-3, which affect program performance.

In the current trading partner database, there are two levels for storing information, Interchange Level and Transaction Set Level. As ECRTP processes each transaction, a lookup is done on the trading partner file and if a transaction set is not defined in the trade agreement table, no acknowledgement flags are set for that transaction. Therefore, a bad transaction set id error cannot be reported in the 997 Acknowledgement transaction that is transmitted back to the originator of the interchange. If there was an option in the Trading Partner database to set acknowledgement flags at the Functional Group Level instead of the Transaction Set level, the ACK_EXPECT field in the TRLOG database could be set correctly based on the value of the flag at the Functional Group Level.

Table 2-3: Environment variable descriptions

Environment variable

Description

ACKINT

ECRTP checks for the existence of the ACKINT environment variable. If this environment variable exists and has been set to any value, then when the trading partner record is not found during an inbound run, the ACK_EXPECT log value will be a ’1’ instead of '0'.

ACKGROUP

ECRTP checks for the existence of an ACKGROUP environment variable. If this environment variable exists and has been set to any value, then when the TRADSTAT record is not found during an inbound run, the ACK_EXPECT log value will be a '1' instead of '0'.

ALL_TB_OWNERS

ECRTP checks for the existence of an ALL_TB_OWNERS environment variable. If this environment variable exists and has been set to any value, then a table can be accessed by the code as long as the current user has sufficient access permission.

AUTO_INC_FIX

For databases that do not support an auto-increment field, setting the AUTO_INC_FIX environment variable provides a mechanism by which the TPKEY (TP table), TRADKEY (TRADSTAT table), and ALFD (TRLOG table) fields are incremented whenever a record is added to the TP, TRADSTAT, and TRLOG tables.

For DB2, the sytax for AUTO_INC_FIX is:

auto_inc_fix = NOT NULL GENERATED ALWAYS AS IDENTITY

PADEDI

Pads numeric fields with leading zeros or alphanumeric field with trailing spaces to ensure that data meets minimal field length requirements.

In Windows, set the Variable Name to PADEDI. Set the Variable Value to Y.

In UNIX, open a shell and run the following commands:

ksh: set PADEDI=YES ; export PADEDI
sh:  set PADEDI=1 ; export PADEDI
csh: setenv PADEDI 1

WWIXTB=(NUMBER)

The number set by wwixtb is the maximum number of records that a cross reference file can have and still be loaded into memory. The default wwixtb value is 10000. This is equivalent to the command line parameter “-r number”.Example: Set wwixtb=200

This environment variable is only available on NT and Window Platforms. For UNIX, the default is 10000, and the –r switch must be used to change maximum value.

WWIXQUOTE

This optional delimited file environment variable can be set to SPACE or NONE or PIPE or any character. Default delimited file quote is a double quote.

WWIXDELIM

This optional delimited file environment variable can be set to SPACE or PIPE (where PIPE is “|” ) The default delimited file delimiter is a comma. Example: Set WWIQUOTE=' changes delimited file quote to single quote.

WWIXNUNG

If set, then no UNG EDIFACT segment is written for outbound maps (same as -u switch).

WWIXTRANS

If set to no, no badtrans.nmt is produced for inbound maps (equivalent to the -b command line parameter).

WWIXERR

If set, then the inbound control numbers from trading partners are compared with previous inbound control numbers from the same trading partner. If the inbound control numbers are not being incremented by 1 from the previous control number, then an error message is written. (no equivalent switch)

WWIXDEBUG

If set to any value, then temporary files created during the processing of “Multiple Files Yes” run will not be deleted for outbound maps. This switch is available to help analyze/debug map problems (same as “-db” switch).

WWIXNOCR

If set to any value, then a segment delimiter of newline, will be written as newline only. Normally on the PC, a newline segment delimiter is written as <return, newline>. On UNIX, this is not a valid switch because newline segment delimiters are always written as just a newline (no equivalent switch).