Difference between revisions of "MUMPS/MUMPS Language Elements"

From VistApedia
Jump to: navigation, search
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>(&gt;)</nowiki>}}
 +
{{:MUMPS/Operator_is_less_than|is less than <nowiki>(&lt;)</nowiki>}}
 +
{{:MUMPS/Operator_is_less_than_or_equal_to|is less than or equal to <nowiki>('&gt;, &lt;=)</nowiki>}}
 +
{{:MUMPS/Operator_is_greater_than_or_equal_to|is greater than or equal to <nowiki>('&lt;, &gt;=)</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>(&amp;)</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/Command_B}}
+
{{:MUMPS/Function_B}}
{{:MUMPS/Command_C}}
+
{{:MUMPS/Function_C}}
{{:MUMPS/Command_D}}
+
{{:MUMPS/Function_D}}
{{:MUMPS/Command_E}}
+
{{:MUMPS/Function_E}}
{{:MUMPS/Command_F}}
+
{{:MUMPS/Function_F}}
{{:MUMPS/Command_G}}
+
{{:MUMPS/Function_G}}
{{:MUMPS/Command_H}}
+
{{:MUMPS/Function_H}}
{{:MUMPS/Command_I}}
+
{{:MUMPS/Function_I}}
{{:MUMPS/Command_J}}
+
{{:MUMPS/Function_J}}
{{:MUMPS/Command_K}}
+
{{:MUMPS/Function_K}}
{{:MUMPS/Command_L}}
+
{{:MUMPS/Function_L}}
{{:MUMPS/Command_M}}
+
{{:MUMPS/Function_M}}
{{:MUMPS/Command_N}}
+
{{:MUMPS/Function_N}}
{{:MUMPS/Command_O}}
+
{{:MUMPS/Function_O}}
{{:MUMPS/Command_P}}
+
{{:MUMPS/Function_P}}
{{:MUMPS/Command_Q}}
+
{{:MUMPS/Function_Q}}
{{:MUMPS/Command_R}}
+
{{:MUMPS/Function_R}}
{{:MUMPS/Command_S}}
+
{{:MUMPS/Function_S}}
{{:MUMPS/Command_T}}
+
{{:MUMPS/Function_T}}
{{:MUMPS/Command_U}}
+
{{:MUMPS/Function_U}}
{{:MUMPS/Command_V}}
+
{{:MUMPS/Function_V}}
{{:MUMPS/Command_W}}
+
{{:MUMPS/Function_W}}
{{:MUMPS/Command_X}}
+
{{:MUMPS/Function_X}}
{{:MUMPS/Command_Y}}
+
{{:MUMPS/Function_Y}}
{{:MUMPS/Command_Z}}
+
{{:MUMPS/Function_Z}}

Revision as of 16:05, 1 July 2019

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 a postcondition which is an expression that when evaluated is interpreted as either True (1) or False (0). When the postcondition is interpreted as True, the command is executed with its arguments. When the postcondition is interpreted as False then the command is NOT executed with its arguments and is skipped. The postcondition functions 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 called argumentless commands.
  ↑ M Language Elements ↑  |  → Command B → 

command A or a

 Currently, the letter sequence A is the prefix for several commands: 

ASSIGN or assign or a or A

Currently, the letter sequence A is the abbreviation for the Command ASSIGN. This Command is part of the next M Standard.
This command is not implemented by all vendors.

ABLOCK or ablock or ab or AB

 Currently, the letter sequence AB is the abbreviation for the Command ABLOCK. This Command is part of the next M Standard.
This command is not implemented by all vendors. 

ASTART or astart or asta or ASTA

 Currently, the letter sequence ASTA is the abbreviation for the Command ASTART. This Command is part of the next M Standard.
This command is not implemented by all vendors.

ASTOP or astop or asto or ASTO

 Currently, the letter sequence ASTO is the abbreviation for the Command ASTOP. This Command is part of the next M Standard.
This command is not implemented by all vendors.

AUNBLOCK or aunblock or aunb or AUNB

 Currently, the letter sequence AUNB is the abbreviation for the Command AUNBLOCK. This Command is part of the next M Standard.
This command is not implemented by all vendors.
=== Former Non-Standard Command ===
The letter A used to be the abbreviation for the Command ASK.  No Standard M implementation is required to implement this command. Non-Standard M systems may include the Command ASK.
 ← Command A ←  |  ↑ M Language Elements ↑  |  → Command C → 

command B or b

 Currently, the letter B is the abbreviation for the Command BREAK. 

command C or c

 Currently, the letter C is the abbreviation for the Command CLOSE. 

command D or d

 Currently, the letter D is the abbreviation for the Command DO. 

command E or e

 Currently, the letter sequence E is the prefix for several commands: 

ELSE or else or e or E

Currently, the letter sequence E is the abbreviation for the Command ELSE.

ESTART or estart or esta or ESTA

 Currently, the letter sequence ESTA is the abbreviation for the Command ESTART. This Command is part of the next M Standard.
This is part of the MUMPS Windowing Application Programmer Interface, and may not be implemented by all vendors. This command is not implemented by all vendors.

ESTOP or estop or esto or ESTO

 Currently, the letter sequence ESTO is the abbreviation for the Command ESTOP. This Command is part of the next M Standard.
This is part of the MUMPS Windowing Application Programmer Interface, and may not be implemented by all vendors. This command is not implemented by all vendors.

ETRIGGER or etrigger or etri or ETRI

 Currently, the letter sequence ETRI is the abbreviation for the Command ETRIGGER. This Command is part of the next M Standard.
This is part of the MUMPS Windowing Application Programmer Interface, and may not be implemented by all vendors. This command is not implemented by all vendors.

command F or f

FOR or for or f or F

Currently, the letter sequence F is the abbreviation for the Command FOR.

command G or g

Currently, the letter  G is the Abbreviation for the command 
  1. REDIRECTTemplate:M/Mcmd.

command H or h

Currently, the letter  H is the Abbreviation for the command Command HANG.
Currently, the letter  H is the Abbreviation for the command Command HALT.

command I or i

Currently, the letter  I is the Abbreviation for the command Command IF.

command J or j

Currently, the letter  J is the Abbreviation for the command Command JOB.

command K or k

Currently, the letter  K is the Abbreviation for the command Command KILL.
Currently, the letter K is the prefix for several commands:
Currently, Command KS is the abbreviation for the command  Command KSUBSCRIPTS.
  1. REDIRECTTemplate:M/NotImpl
Currently, Command KV is the abbreviation for the command  Command KVALUE. 
  1. REDIRECTTemplate:M/NotImpl

command L or l

Currently, the letter  L is the Abbreviation for the command Command LOCK.

command M or m

Currently, the letter  M is the Abbreviation for the command Command MERGE.

command N or n

Currently, the letter  N is the Abbreviation for the command Command NEW.

command O or o

Currently, the letter  O is the Abbreviation for the command Command OPEN.

command P or p

Currently, the letter  P is NOT an abbreviation for any command.
used to be Abbreviation for the command Command PRINT

command Q or q

Currently, the letter Q is the Abbreviation for the command Command QUIT.

command R or r

Currently, the letter R is the Abbreviation for the command Command READ.
Currently, the letter R is the prefix for several commands:
: RL is the abbreviation for the command  Command RLOAD. This command is not implemented by all vendors.
: RS is the abbreviation for the command  Command RSAVE. This command is not implemented by all vendors.

command S or s

Currently, the letter  S is the Abbreviation for the command Command SET.

command T or t

Currently, the letter  T is NOT an Abbreviation for any command.
Currently, the letter  T is the prefix for several commands:
Currently, Command TC is the abbreviation for the command  Command TCOMMIT. This command is not implemented by all vendors.
Currently, Command TH is the abbreviation for the command  Command THEN. This command is not implemented by all vendors.
Currently, Command TRE is the abbreviation for the command  Command TRESTART. This command is not implemented by all vendors.
Currently, Command TRO is the abbreviation for the command  Command TROLLBACK. This command is not implemented by all vendors.

command U or u

Currently, the letter  U is the abbreviation for the command USE.

command V or v

Currently, the letter sequence V is the abbreviation for the Command VIEW.

command W and w

Currently, the letter  W is the Abbreviation for the command WRITE.

command X or x

Currently, the letter  X is the Abbreviation for the command XECUTE.

command Y and y

Currently, the letter  Y is NOT an abbreviation for any command.

command Z and z

Currently, the letter  Z is NOT an Abbreviation for any command.
Currently, letter Z is the PREFIX for several commands.
As per the MUMPS Standard all commands with Z are 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