Execute Universal Message Translator from IBM i

Execute Universal Message Translator from IBM i

The following example illustrates the execution of Universal Message Translator from IBM i.

STRUME MSGFILE(input_file) MSGMBR(member) TBL(table_file) TBLMBR(member) MSGLEVEL(*VERBOSE)

The TBL [TBLMBR] option points to the file, which defines the exit codes with which to end this process, based on matching text. The first column of the file defines the text to match; the second defines the return code to set if the matching text exists in the file defined by the MSGFILE [MSGMBR] option.

Diagnostic message UNV0383 and Informational message CPF9815 are issued if an error occurs during execution of the STRUME command. All other informational messages will be written to STDOUT. To avoid messages written to stdout, either allow MSGLEVEL to default to *warn or specify MSGLEVEL as *error.

Command Line Options

The command line options used in this example are:

Option

Description

TBL [TBLMBR]

Translation table file name.

MSGLEVEL

Level of messages that will be displayed.

MSGFILE [MSGMBR]

Input message file name. If the option is not specified, UMET reads its input from stdin, which is allocated to the terminal for interactive jobs and to QINLINE for non-interactive jobs.

Components

Universal Message Translator