Kourier Integrator Online Help

KMK.EXPORT

Syntax

KMK.EXPORT EXPORT_NAME1 {EXPORT-ID "STRING"} {HEADERS "STRING"} {EXPORT_NAME2} {EXPORT-ID "STRING"} {HEADERS "STRING"}} {EXPORT-NETCHG}

Description

This command can be used to execute one or more Kourier exports in the context of a Kourier service. For information on running the KMK.EXPORT command from UniBasic or TCL, refer to the KMK.SERVICE topic.

Options

EXPORT_NAME

The name of an export in the KT_EXPORTS file.

EXPORT-ID

Assigns the value specified in "string" to the substitution parameter %export.

HEADERS

Creates a substitution parameter as specified in "string" where "string" is a named value pair in the format of "name=value".  Multiple named value pairs can be specified by separating each named value pair by a comma followed by a space (e.g. StartDate=01-01-14, EndDate=12-31-14). The substitution value can be referenced by using the %name syntax in the export.

EXPORT-NETCHG

Indicates that all exports listed are to run in net change mode.  This option must be specified as the last option in the command line (if used).

Scope of Use

This command MUST be used in a Kourier Service.

Examples

KMK.EXPORT KS_CUSTOMERS EXPORT-ID "customers" KS_CONTACTS EXPORT-ID "contacts"

In this example, two exports will be processed: KS_CUSTOMERS and KS_CONTACTS.  The output from each export will be saved in the target DSN as a message and the value of the %export substitution parameter associated with each message will be the value specified in double quotes (i.e. 'customers' for the KS_CUSTOMER export and 'contacts' for the KS_CONTACTS export). 

KMK.EXPORT KS_CUSTOMERS EXPORT-ID "customers" KS_CONTACTS EXPORT-ID "contacts" EXPORT-NETCHG

In this example, two exports will be processed in Net Change mode: KS_CUSTOMERS and KS_CONTACTS.  The output from each export will be saved in the target DSN as a message and the value of the %export substitution parameter associated with each message will be the value specified in double quotes (i.e. 'customers' for the KS_CUSTOMER export and 'contacts' for the KS_CONTACTS export). 

Related Topics: 

Kourier TCL Commands Overview

Kourier Service Commands

Kourier Command Keywords

KMK.SERVICE