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.

Example 1

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.

Example 2

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.

See Also

KMK.EXPORT

Kourier TCL Commands

Kourier Command Keywords


User Guide - Table of Contents