KMK.EXPORT export_name1 {EXPORT-ID "string"} {HEADERS "string"} {export_name2 {EXPORT-ID "string"} {HEADERS "string"}} {EXPORT-NETCHG}
This command can be used to execute one or more Kourier exports in the context of a Kourier service.
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". The substitution value can be referenced by using the %name syntax. |
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). |
This subroutine MUST be used in a Kourier service.
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).