Kourier Integrator User Guide

General Reference > Command Reference > KMK.EXPORT

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.

Options1

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 subroutine 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