Command line switches [EDI 4.2]

Table 5-1 describes the available switches for ODBC and non-ODBC trading partner files for EDI version 4.2 and later. These switches correspond to various RunMap options in ECRTP, EC Gateway, and ECMAP, and apply to both Windows and UNIX platforms.

Table 5-1: EDI 4.2 switches for ODBC and non-ODBC trading partners

Parameter

Description

Inbound/outbound

Required/optional

EDI version

-ab

Specifies a new full path and file name to be used in place of a BAD EDI file.

Inbound

Optional

4.2

-ag

Specifies a new full path and file name to be used in place of a GOOD EDI file.

Inbound

Optional

4.2

-al

Handles character checks for compliance maps. Only valid ASCII characters with values 0 — 127 are allowed, and not the extended ASCII characters 128 — 255.

Inbound

Optional

4.2.5

-as

Checks that each ST Transaction Control Number in a GS to GE is greater than the previous ST Transaction Control Number. Validation assumes that control numbers appear in ascending order.

Inbound

Optional

4.2

-clz

Flags leading zeros in numeric X12 fields as an error on HIPAA compliance maps.

An error is flagged if leading zeros are not used to meet the minimum length requirement of that particular element. If the leading zeros are necessary to meet the minimum length of the element, no error is generated. This option does not check leading zeros on noncompliance maps.

Inbound

Optional

4.2

Inbound:

-cn

Outbound:

-cn control number

Disables control number lookups and updates when running inbound and outbound maps.

For inbound processing, -cn prevents the code from doing any control number updates. Use either -cn or -sc.

For outbound processing, -cn control number disables control number lookups and updates when running an outbound map and the value provided for control number is used instead as the control number for the outbound ISA.

Inbound and outbound

Optional

4.2.4

-cu

Checks for unique control numbers within a transaction. Control numbers can now occur in any sequence, as long as they are unique.

If duplicate control numbers are found, ECRTP logs a 6054 error. Use only one of -as or -cu for any map run. If both switches are present, ECRTP defaults to the last switch encountered.

Inbound

Optional

4.2

-mn

Passes the map name extension as part of a command line argument. The Map Name Extension works with other map lookup fields to find a correct map.

Inbound and outbound

Optional

4.2

-ncb

Indicates that the EDI file to be processed is an NCPDP batch file. Required for all inbound NCPDP files unless -nct is active.

Inbound

Required for inbound NCPDP batch files

4.2

-nct

Indicates that the EDI file to be processed is an NCPDP telecommunications file. Required for all inbound NCPDP files unless -ncb is active.

Inbound

Required for inbound NCPDP telecommunications files

4.2

-nret

Adds new return codes that provide additional information to the calling program. Based on the return value, the user can determine the next step in the process.

Inbound

Optional for compliance maps only

4.2

-nz

Maps numeric data exactly (including blank fields) as it appears on the map.

Inbound

Optional

4.2

-ol

Triggers a series of lookups against the trading partner database when the ECMAP/EC Gateway Log is used as input.

If a trading partner match is found, ECRTP uses the entry to populate the EDI envelope.

Outbound

Optional

4.2

-pe

Pads EDI data to minimum length in compliance maps. This option ensures that data meets minimal field length requirements.

This switch is an optional replacement for the PADEDI environment variable.

Outbound

Optional

4.2

-sc

Validates the sequence of the Interchange (ISA) and Group (GS) control numbers. If you use this switch, RTP checks the current control number against the trading partner database to validate the entry. If the entry in the file is not the next sequential entry, an error is reported.

Inbound

Optional

4.2

-sdb

Specifies the maximum number of cached ODBC connections. The default value '0' indicates no ODBC connection caching.

Inbound and outbound

Optional

4.2

-tc NN

Specifies a maximum waiting time, in milliseconds, for ECRTP to establish a database connection. The default NN value for this switch is 1000 milliseconds.

Inbound and outbound

Optional

4.2.5

-vs

Checks the validity of ASCII characters from 0 — 127 against the version of X12. If the character is ^ (circumflex) or ' (accent grave) and the X12 version is prior to 4040, the character is invalid and an error is generated.

Inbound

Optional

4.2.5