Special variables -- $ECODE

$EC[ODE]

Introduced in the 1995 ANSI M[UMPS] language standard.

This variable provides information about the error-conditions that are unresolved.

IF $ECODE[",M6," WRITE "Undefined local variable"

Note: the leftmost character of the value of $ECODE is always a comma. This means that every error code that is stored in $ECODE is surrounded by commas. If $ECODE contains "M61", it would also contain "M6", so it is better to include the commas in the value to check for: check whether $ECODE contains ",M6,".

For more examples of the use of special variable $ECODE, see the function $STACK.


This document is © Ed de Moel, 1995-2005.
It is part of a book by Ed de Moel that is published under the title "M[UMPS] by Example" (ISBN 0-918118-42-5).
Printed copies of the book are no longer available.

This document describes the various special variables that are defined in the M[UMPS] language standard (ANSI X11.1, ISO 11756).

The information in this document is NOT authoritative and subject to be modified at any moment.
Please consult the appropriate (draft) language standard for an authoritative definition.

In this document, information is included that will appear in future standards.
The MDC cannot guarantee that these 'next' standards will indeed appear.