# Difference between revisions of "MUMPS/MUMPS Language Elements"

DavidWhitten (talk | contribs) |
DavidWhitten (talk | contribs) |
||

Line 35: | Line 35: | ||

{{:MUMPS/Command_Y}} | {{:MUMPS/Command_Y}} | ||

{{:MUMPS/Command_Z}} | {{:MUMPS/Command_Z}} | ||

+ | |||

+ | == Operators - note: use punctuation in parentheses, not operator name == | ||

+ | {{:MUMPS/Operator_plus|plus <nowiki>(+)</nowiki>}} | ||

+ | {{:MUMPS/Operator_minus|minus <nowiki>(-)</nowiki>}} | ||

+ | {{:MUMPS/Operator_times|times <nowiki>(*)</nowiki>}} | ||

+ | {{:MUMPS/Operator_divided_by|divided by <nowiki>(/)</nowiki>}} | ||

+ | {{:MUMPS/Operator_integer_divided_by|integer divided by <nowiki>(\)</nowiki>}} | ||

+ | {{:MUMPS/Operator_modulo|modulo <nowiki>(#)</nowiki>}} | ||

+ | {{:MUMPS/Operator_to_the_power_of|to the power of <nowiki>(**)</nowiki>}} | ||

+ | {{:MUMPS/Operator_concatenate|concatenate <nowiki>(_)</nowiki>}} | ||

+ | {{:MUMPS/Operator_becomes|_becomes <nowiki>(=)</nowiki>}} | ||

+ | {{:MUMPS/Operator_is_equal_to|is equal to <nowiki>(=)</nowiki>}} | ||

+ | {{:MUMPS/Operator_object_is_equal_to|object is equal to <nowiki>(==)</nowiki>}} | ||

+ | {{:MUMPS/Operator_is_greater_than|is greater than <nowiki>(>)</nowiki>}} | ||

+ | {{:MUMPS/Operator_is_less_than|is less than <nowiki>(<)</nowiki>}} | ||

+ | {{:MUMPS/Operator_is_less_than_or_equal_to|is less than or equal to <nowiki>('>, <=)</nowiki>}} | ||

+ | {{:MUMPS/Operator_is_greater_than_or_equal_to|is greater than or equal to <nowiki>('<, >=)</nowiki>}} | ||

+ | {{:MUMPS/Operator_matches_pattern|matches pattern <nowiki>(?)</nowiki>}} | ||

+ | {{:MUMPS/Operator_contains|contains <nowiki>([)</nowiki>}} | ||

+ | {{:MUMPS/Operator_follows|follows <nowiki>(])</nowiki>}} | ||

+ | {{:MUMPS/Operator_follows or is equal to|follows or is equal to <nowiki>(]=)</nowiki>}} | ||

+ | {{:MUMPS/Operator_collates after|collates after <nowiki>(]])</nowiki>}} | ||

+ | {{:MUMPS/Operator_collates after or is equal to|collates after or is equal to <nowiki>(]]=)</nowiki>}} | ||

+ | {{:MUMPS/Operator_and|and <nowiki>(&)</nowiki>}} | ||

+ | {{:MUMPS/Operator_or|or <nowiki>(!)</nowiki>}} | ||

+ | {{:MUMPS/Operator_exclusive_or|exclusive or <nowiki>(!!)</nowiki>}} | ||

+ | {{:MUMPS/Operator_not|not <nowiki>(')</nowiki>}} | ||

+ | {{:MUMPS/Operator_indirect|indirect <nowiki>(@)</nowiki>}} | ||

+ | |||

+ | == (Intrinsic) Special_Variables svn == | ||

+ | {{:MUMPS/Special_Variable_A}} | ||

+ | {{:MUMPS/Special_Variable_B}} | ||

+ | {{:MUMPS/Special_Variable_C}} | ||

+ | {{:MUMPS/Special_Variable_D}} | ||

+ | {{:MUMPS/Special_Variable_E}} | ||

+ | {{:MUMPS/Special_Variable_F}} | ||

+ | {{:MUMPS/Special_Variable_G}} | ||

+ | {{:MUMPS/Special_Variable_H}} | ||

+ | {{:MUMPS/Special_Variable_I}} | ||

+ | {{:MUMPS/Special_Variable_J}} | ||

+ | {{:MUMPS/Special_Variable_K}} | ||

+ | {{:MUMPS/Special_Variable_L}} | ||

+ | {{:MUMPS/Special_Variable_M}} | ||

+ | {{:MUMPS/Special_Variable_N}} | ||

+ | {{:MUMPS/Special_Variable_O}} | ||

+ | {{:MUMPS/Special_Variable_P}} | ||

+ | {{:MUMPS/Special_Variable_Q}} | ||

+ | {{:MUMPS/Special_Variable_R}} | ||

+ | {{:MUMPS/Special_Variable_S}} | ||

+ | {{:MUMPS/Special_Variable_T}} | ||

+ | {{:MUMPS/Special_Variable_U}} | ||

+ | {{:MUMPS/Special_Variable_V}} | ||

+ | {{:MUMPS/Special_Variable_W}} | ||

+ | {{:MUMPS/Special_Variable_X}} | ||

+ | {{:MUMPS/Special_Variable_Y}} | ||

+ | {{:MUMPS/Special_Variable_Z}} | ||

== Functions == | == Functions == | ||

{{:MUMPS/Function_A}} | {{:MUMPS/Function_A}} | ||

− | {{:MUMPS/ | + | {{:MUMPS/Function_B}} |

− | {{:MUMPS/ | + | {{:MUMPS/Function_C}} |

− | {{:MUMPS/ | + | {{:MUMPS/Function_D}} |

− | {{:MUMPS/ | + | {{:MUMPS/Function_E}} |

− | {{:MUMPS/ | + | {{:MUMPS/Function_F}} |

− | {{:MUMPS/ | + | {{:MUMPS/Function_G}} |

− | {{:MUMPS/ | + | {{:MUMPS/Function_H}} |

− | {{:MUMPS/ | + | {{:MUMPS/Function_I}} |

− | {{:MUMPS/ | + | {{:MUMPS/Function_J}} |

− | {{:MUMPS/ | + | {{:MUMPS/Function_K}} |

− | {{:MUMPS/ | + | {{:MUMPS/Function_L}} |

− | {{:MUMPS/ | + | {{:MUMPS/Function_M}} |

− | {{:MUMPS/ | + | {{:MUMPS/Function_N}} |

− | {{:MUMPS/ | + | {{:MUMPS/Function_O}} |

− | {{:MUMPS/ | + | {{:MUMPS/Function_P}} |

− | {{:MUMPS/ | + | {{:MUMPS/Function_Q}} |

− | {{:MUMPS/ | + | {{:MUMPS/Function_R}} |

− | {{:MUMPS/ | + | {{:MUMPS/Function_S}} |

− | {{:MUMPS/ | + | {{:MUMPS/Function_T}} |

− | {{:MUMPS/ | + | {{:MUMPS/Function_U}} |

− | {{:MUMPS/ | + | {{:MUMPS/Function_V}} |

− | {{:MUMPS/ | + | {{:MUMPS/Function_W}} |

− | {{:MUMPS/ | + | {{:MUMPS/Function_X}} |

− | {{:MUMPS/ | + | {{:MUMPS/Function_Y}} |

− | {{:MUMPS/ | + | {{:MUMPS/Function_Z}} |

## Latest revision as of 16:05, 1 July 2019

## Contents

- 1 Introduction
- 2 Commands
- 2.1 command A or a
- 2.2 command ABLOCK or ablock
- 2.3 command B or b
- 2.4 command C or c
- 2.5 command D or d
- 2.6 command E or e
- 2.7 command ESTART or estart
- 2.8 command F or f
- 2.9 command G or g
- 2.10 command H or h
- 2.11 command I or i
- 2.12 command J or j
- 2.13 command K or k
- 2.14 command L or l
- 2.15 command M or m
- 2.16 command N or n
- 2.17 command O or o
- 2.18 command P or p
- 2.19 command Q or q
- 2.20 command R or r
- 2.21 command S or s
- 2.22 command T or t
- 2.23 command U or u
- 2.24 command V or v
- 2.25 command W and w
- 2.26 command X or x
- 2.27 command Y and y
- 2.28 command Z and z

- 3 Operators - note: use punctuation in parentheses, not operator name
- 4 (Intrinsic) Special_Variables svn
- 5 Functions

## Introduction

MUMPS has abbreviations for each command. We will have sections in this page for each character of the alphabet. This information is from Ed de Moel's MUMPS by Example web page. Unless otherwise stated, all commands on this page are part of the Standard MUMPS Language and are implemented by all Standard MUMPS vendors. Any commands that are not implemented by all Standard MUMPS vendors are not used by VistA application code.

## Commands

Unless otherwise stated, each command may be followed by the colon (:), then apostconditionwhich is an expression that when evaluated is interpreted as either True (1) or False (0). When thepostconditionis interpreted as True, the command is executed with its arguments. When thepostconditionis interpreted as False then the command isNOTexecuted with its arguments and is skipped. Thepostconditionfunctions as a "guard" that either allows the command to be executed or not.

Unless otherwise stated, most commands are followed by a space and more information needed to complete the command action. This extra information is a command argument. Most commands that have NO argument will take a default action. The commands that have no extra information are calledargumentlesscommands.

### command A or a

Currently, the letterAis the prefix for several commands:

#### command ASSIGN or assign

Currently, the letterAis the abbreviation for theCommand ASSIGN. This command is not implemented by all vendors.

### command ABLOCK or ablock

Currently, the letterABis the abbreviation for theCommand ABLOCK.

- command ASTART or astart

This is part of the MWAPI Standard and may not be implemented by all vendors.

- command ASTOP or astop

This is part of the MUMPS Windowing Application Programmer Interface, and may not be implemented by all vendors.

MUMPS/Command AUNBLOCK MUMPS/FormerCmd

### command B or b

Currently, the letterBis the abbreviation for theCommand BREAK.

### command C or c

Currently, the letterCis the abbreviation for theCommand CLOSE.

### command D or d

Currently, the letterDis the abbreviation for theCommand DO.

### command E or e

Currently, the letterEis the prefix for several commands: MUMPS/Command ELSE

### command ESTART or estart

MUMPS/Command ESTOP MUMPS/Command ETRIGGER

### command F or f

MUMPS/Command FOR

### command G or g

Currently, the letterGis the Abbreviation for the commandCommand GOTO.

### command H or h

Currently, the letterHis the Abbreviation for the commandCommand HANG. Currently, the letterHis the Abbreviation for the commandCommand HALT.

### command I or i

Currently, the letterIis the Abbreviation for the commandCommand IF.

### command J or j

Currently, the letterJis the Abbreviation for the commandCommand JOB.

### command K or k

Currently, the letterKis the Abbreviation for the commandCommand KILL. Currently, the letterKis the prefix for several commands: Currently,Command KSis the abbreviation for the commandCommand KSUBSCRIPTS.This command is not implemented by all vendors. Currently,Command KVis the abbreviation for the commandCommand KVALUE. This command is not implemented by all vendors.

### command L or l

Currently, the letterLis the Abbreviation for the commandCommand LOCK.

### command M or m

Currently, the letterMis the Abbreviation for the commandCommand MERGE.

### command N or n

Currently, the letterNis the Abbreviation for the commandCommand NEW.

### command O or o

Currently, the letterOis the Abbreviation for the commandCommand OPEN.

### command P or p

Currently, the letterPisNOTan abbreviation for any command. used to be Abbreviation for the commandCommand PRINT

### command Q or q

Currently, the letterQis the Abbreviation for the commandCommand QUIT.

### command R or r

Currently, the letterRis the Abbreviation for the commandCommand READ. Currently, the letterRis the prefix for several commands: Currently,RLis the abbreviation for the commandCommand RLOAD. This command is not implemented by all vendors. Currently,RSis the abbreviation for the commandCommand RSAVE. This command is not implemented by all vendors.

### command S or s

Currently, the letterSis the Abbreviation for the commandCommand SET.

### command T or t

Currently, the letterTisNOTan Abbreviation for any command. Currently, the letterTis the prefix for several commands: Currently,Command TCis the abbreviation for the commandCommand TCOMMIT. This command is not implemented by all vendors. Currently,Command THis the abbreviation for the commandCommand THEN. This command is not implemented by all vendors. Currently,Command TREis the abbreviation for the commandCommand TRESTART. This command is not implemented by all vendors. Currently,Command TROis the abbreviation for the commandCommand TROLLBACK. This command is not implemented by all vendors.

### command U or u

Currently, the letterUis the abbreviation for the commandUSE.

### command V or v

Currently, the letterVis the abbreviation for theCommand VIEW.

### command W and w

Currently, the letterWis the Abbreviation for the commandWRITE.

### command X or x

Currently, the letterXis the Abbreviation for the commandXECUTE.

### command Y and y

Currently, the letterYisNOTan abbreviation for any command.

### command Z and z

Currently, the letterZisNOTan Abbreviation for any command. Currently, letterZis thePREFIXfor several commands. As per the MUMPS Standard all commands withZare defined by an implementation by a vendor.

## Operators - note: use punctuation in parentheses, not operator name

MUMPS/Operator plus MUMPS/Operator minus MUMPS/Operator times MUMPS/Operator divided by MUMPS/Operator integer divided by MUMPS/Operator modulo MUMPS/Operator to the power of MUMPS/Operator concatenate MUMPS/Operator becomes MUMPS/Operator is equal to MUMPS/Operator object is equal to MUMPS/Operator is greater than MUMPS/Operator is less than MUMPS/Operator is less than or equal to MUMPS/Operator is greater than or equal to MUMPS/Operator matches pattern MUMPS/Operator contains MUMPS/Operator follows MUMPS/Operator follows or is equal to MUMPS/Operator collates after MUMPS/Operator collates after or is equal to MUMPS/Operator and MUMPS/Operator or MUMPS/Operator exclusive or MUMPS/Operator not MUMPS/Operator indirect

## (Intrinsic) Special_Variables svn

MUMPS/Special Variable A MUMPS/Special Variable B MUMPS/Special Variable C MUMPS/Special Variable D MUMPS/Special Variable E MUMPS/Special Variable F MUMPS/Special Variable G MUMPS/Special Variable H MUMPS/Special Variable I MUMPS/Special Variable J MUMPS/Special Variable K MUMPS/Special Variable L MUMPS/Special Variable M MUMPS/Special Variable N MUMPS/Special Variable O MUMPS/Special Variable P MUMPS/Special Variable Q MUMPS/Special Variable R MUMPS/Special Variable S MUMPS/Special Variable T MUMPS/Special Variable U MUMPS/Special Variable V MUMPS/Special Variable W MUMPS/Special Variable X MUMPS/Special Variable Y MUMPS/Special Variable Z

## Functions

MUMPS/Function A MUMPS/Function B MUMPS/Function C MUMPS/Function D MUMPS/Function E MUMPS/Function F MUMPS/Function G MUMPS/Function H MUMPS/Function I MUMPS/Function J MUMPS/Function K MUMPS/Function L MUMPS/Function M MUMPS/Function N MUMPS/Function O MUMPS/Function P MUMPS/Function Q MUMPS/Function R MUMPS/Function S MUMPS/Function T MUMPS/Function U MUMPS/Function V MUMPS/Function W MUMPS/Function X MUMPS/Function Y MUMPS/Function Z