MESSAGESEARCHER Statement as an Arithmetic Function

The MESSAGESEARCHER statement can be used as an arithmetic function that returns an integer result indicating whether or not the message was successfully found and formatted. The possible values for this result are as follows:

Value

Meaning

1

The message is not in the requested language; it is in MYSELF.LANGUAGE or the system default language.

0

The message was found and formatted as requested.

–1

Too few parameters were specified.

–2

No matching <output message case part> was found.

–3

The message is in the first available language.

–4

The array row referenced by the result pointer is too small.

–5

The message was not found.

–6

The version of the output message array is incompatible with the version of the operating system.

–7

The output message array is in error.

–8

A fault occurred while obtaining the output message.

–9

The length passed with a parameter is too long.

–11

The result pointer has a type that is not valid.