Difference between revisions of "MUMPS/MUMPS Language Elements"

From VistApedia
Jump to: navigation, search
(command C or c)
(Redirected page to M/M Language Elements)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Introduction ==
+
#REDIRECT[[M/M Language Elements]]
MUMPS has abbreviations for each command. We will have sections in this page for each character of the alphabet.
+
[[Category:M sub-site]]
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 {{G|VistA}} application code. 
 
 
 
== Commands ==
 
Unless otherwise stated, each command may be followed by the colon (''':'''), then a <u>postcondition</u> which is an expression that when evaluated is interpreted as either True (1) or False (0). When the <u>postcondition</u> is interpreted as True, the command is executed with its arguments. When the <u>postcondition</u> is interpreted as False then the command is '''NOT''' executed with its arguments and is skipped. The <u>postcondition</u> 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 <u>argumentless</u> commands.
 
 
 
{{:MUMPS/Command_A}}
 
{{:MUMPS/Command B}}
 
 
 
{{:MUMPS/Command_C}}
 
 
 
=== command  D or d ===
 
Currently, the letter '''D''' is the Abbreviation for the command  '''DO'''.
 
=== command  E ===
 
Currently, the letter  '''E''' is the Abbreviation for the command '''ELSE'''.
 
Currently, the letter '''E''' is the prefix for several commands:
 
Currently, '''ESTA''' is the abbreviation for the command  '''ESTART'''. This command is not implemented by all vendors.
 
Currently, '''ESTO''' is the abbreviation for the command  '''ESTOP'''. This command is not implemented by all vendors.
 
Currently, '''ETR''' is the abbreviation for the command  '''ETRIGGER'''. This command is not implemented by all vendors.
 
=== command  F ===
 
Currently, the letter '''F''' is the Abbreviation for the command '''FOR'''.
 
=== command  G ===
 
Currently, the letter  '''G''' is the Abbreviation for the command '''GOTO'''.
 
 
 
=== command  H ===
 
Currently, the letter  '''H''' is the Abbreviation for the command '''HANG'''.
 
Currently, the letter  '''H''' is the Abbreviation for the command '''HALT'''.
 
=== command  I ===
 
Currently, the letter  '''I''' is the Abbreviation for the command '''IF'''.
 
=== command  J ===
 
Currently, the letter  '''J''' is the Abbreviation for the command '''JOB'''.
 
=== command  K ===
 
Currently, the letter  '''K''' is the Abbreviation for the command '''KILL'''.
 
Currently, the letter '''K''' is the prefix for several commands:
 
Currently, '''SK''' is the abbreviation for the command  '''KSUBSCRIBPTS'''. This command is not implemented by all vendors.
 
Currently, '''KV''' is the abbreviation for the command  '''KVALUE'''. This command is not implemented by all vendors.
 
=== command  L ===
 
Currently, the letter  '''L''' is the Abbreviation for the command '''LOCK'''.
 
=== command  M ===
 
Currently, the letter  '''M''' is the Abbreviation for the command '''MERGE'''.
 
=== command  N ===
 
Currently, the letter  '''N''' is the Abbreviation for the command '''NEW'''.
 
=== command  O ===
 
Currently, the letter  '''O''' is the Abbreviation for the command O'''PEN'''.
 
=== command  P ===
 
Currently, the letter  '''P''' is '''NOT''' an abbreviation for any command
 
used to be Abbreviation for the command PRINT
 
=== command  Q ===
 
Currently, the letter  '''Q''' is the Abbreviation for the command '''QUIT'''.
 
=== command  R ===
 
Currently, the letter '''R''' is the Abbreviation for the command '''READ'''.
 
Currently, the letter '''R''' is the prefix for several commands:
 
Currently, '''RL''' is the abbreviation for the command  '''RLOAD'''. This command is not implemented by all vendors.
 
Currently, '''RS''' is the abbreviation for the command  '''RSAVE'''. This command is not implemented by all vendors.
 
=== command  S ===
 
Currently, the letter  '''S''' is the Abbreviation for the command '''SET'''.
 
=== command  T ===
 
Currently, the letter  '''T''' is '''NOT''' an Abbreviation for any command.
 
Currently, the letter  '''T''' is the prefix for several commands:
 
Currently, '''TC''' is the abbreviation for the command  '''TCOMMIT'''. This command is not implemented by all vendors.
 
Currently, '''TH''' is the abbreviation for the command  '''THEN'''. This command is not implemented by all vendors.
 
Currently, '''TRE''' is the abbreviation for the command  '''TRESTART'''. This command is not implemented by all vendors.
 
Currently, '''TRO''' is the abbreviation for the command  '''TROLLBACK'''. This command is not implemented by all vendors.
 
=== command  U ===
 
Currently, the letter  '''U''' is the Abbreviation for the command '''USE'''.
 
=== command  V ===
 
Currently, the letter  '''V''' is the Abbreviation for the command '''VIEW'''.
 
As per the {{g|MUMPS Standard}} all {{Mmeta|viewargument}} are defined by an implementation by a vendor.
 
=== command  W and w ===
 
Currently, the letter  '''W''' is the Abbreviation for the command '''WRITE'''.
 
=== command  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 {{g|MUMPS Standard}} all commands with '''Z''' are defined by an implementation by a vendor.
 

Latest revision as of 17:06, 8 February 2021