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

$MUMPS

M[UMPS] by Example

Right Hand Pointer

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

This function returns a value that indicates whether the text that was passed to the function as a parameter is valid M[UMPS] code.

Set X="Set A=P+Q"
Write $MUMPS(X)

will return the value 0.

Set X="Set A=P+$ZB"
Write $MUMPS(X)

will return the either value 0 or an implementation-specific value.

Set X="Set A=1/0"
Write $MUMPS(X)

will return the value 0.
Note that the function $MUMPS checks for syntactic correctness, not for semantic correctness.

Set X="Set A=$PIECE($HOORLOG,"","",2)"
Write $MUMPS(X)

will return an implementation-specific value, for instance "20;S20;Unknown svn".

Examples with naked references:

$MUMPS(EXPR)
Set ^ABC(1,2)="reset naked indicator"
; naked indicator is now ^ABC(1,
Set ^(3,4)=$MUMPS(^(5,6))

; 1. fetch ^(5,6) = ^ABC(1,5,6)
; 2. store ^(3,4) = ^ABC(1,5,3,4)
; naked indicator is now: ^ABC(1,5,3,

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 28-Nov-2011, 21:33:03 .

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