Tcl syntax and commands

The Tcl syntax is:

command arg1 ?arg2? -arg3… | arg4

In this command syntax:

  • ? (question mark) indicates the argument is optional.
  • - dash indicates options.
  • . . . (ellipse) indicates "and so on".
  • "|" (pipe symbol) indicates "or".
  • <variable> indicates a variable is required.

To create/open a SMAT database, specify:

smatdbopen smatdbName ?-e msgEncoding?

By default, the SMAT files are created in the process directory.

To store a message to a SMAT database, specify:

smatdbinsert smatdbHandle msgID ?saveContext?

If the SMAT (Save file) file is not open, then you must open the SMAT (Save file), before inserting a message.

You cannot insert a message from the TCL SMAT API to the traditional SMAT files.

This table lists the save contexts:

TPS name saveContext
TPS inbound data sms_ib_data
TPS inbound reply sms_ib_reply
TPS outbound data sms_ob_data
TPS outbound reply sms_ob_reply
Xlate raw procs xlt_raw
Xlate pre procs xlt_pre
Xlate post procs xlt_post
Xlate gen procs xlt_gen
Prewrite procs prewrite
Send OK procs for data send_data_ok
Send Fail procs for data send_data_fail
Send OK procs for reply send_reply_ok
Send Fail procs for reply send_reply_fail
Reply generation procs reply_gen
UPOC read tps pdupoc_read
UPOC write tps pdupoc_write
Protocol start-up procedures proto_startup
fileset/ftp inbound deletion fileset_ibdel
fileset/ftp inbound directory parse fileset_ibdirparse
http client query tips httpc_query