Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples
Left Hand Pointer

ASCII 38

M[UMPS] by Example

Right Hand Pointer

Ampersand ("&")

ASCII code 38.

This character may be used as a binary 'and' operator.
If (X>2)&(B<9)

Additions in the 1995 ANSI M[UMPS] language standard:

This character is used in the prefix that identifies an "external" routine:
Do &XMUMPS.Exit(123)
Set X=$&CADD^MATH("1%0","0%1")

This character may be used to introduce an embedded 'foreign language' program:
&SQL(SELECT * FROM SALES WHERE CONTACT = "Jones")

Approved for addition in a future M[UMPS] language standard.

Names of external language processors will be case-insensitive.

&sql(cursor A on EMPLOYEES)

has the same meaning as the same command starting with &SQL

Implementors may add external language processors; the names for such implementation-specific processors will start with the letter "Z".

The parameter list in a call to an external language processor may be empty.

Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples

Copyright © Standard Documents; 1977-2017 MUMPS Development Committee;
Copyright © Examples: 1995-2017 Ed de Moel;
Copyright © Annotations: 2003-2017 Jacquard Systems Research.

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

Some specifications are "approved for inclusion in a future standard". Note that the MUMPS Development Committee cannot guarantee that such future standards will indeed be published.

This page most recently updated on 13-Sep-2014, 18:13:12 .

For comments, contact Ed de Moel (demoel@jacquardsystems.com)