Kourier Integrator Online Help

KMK.CMD

Syntax

KMK.CMD "TCL STATEMENT" {NO-MESSAGE}

Description

KMK.CMD is a Kourier Service command that executes a standard TCL statement.  If used without the NO-MESSAGE keyword, the output of the TCL command is captured into a Kourier message and sent to the target DSN.  If used with the NO-MESSAGE keyword, the TCL command is executed but no message is sent to the target DSN.

Options

NO-MESSAGE

Indicates that the output of the TCL statement should NOT be captured and sent to the target DSN.

Scope of Use

This subroutine MUST be used in a Kourier Service and it MUST be the first command in the service.

Examples

KMK.CMD \LIST SOLI WITH STATUS "N" TOTAL EXT_NET_PRICE ID-SUPP DET-SUPP\

In this example, the TCL statement calculates the total extended net price for all new sales orders. The output of this command can be sent to any target DSN, such as a directory on the sales intranet website. 

KMK.CMD "BUILD.SOSUMMARY" NO-MESSAGE | KMK.EXPORT SO_SUMMARY EXPORT-ID "so_summary"

In this example, the TCL statement (BUILD.SOSUMMARY) is executed as the first service command and its output is not captured as a Kourier message.  The second service command (KMK.EXPORT ...) is executed which runs the Kourier export called SO_SUMMARY and sends its contents to the target DSN.  

Related Topics: 

Kourier TCL Commands Overview

Kourier Service Commands

Kourier Command Keywords

KMK.EXPORT