Difference between revisions of "Compare Java to MUMPS/Ideas from MUMPS"

From VistApedia
Jump to: navigation, search
(command L)
 
(39 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
<noinclude>
 
UP [[Compare Java to MUMPS/Collect Language Ideas|Collect Language Ideas]]
 
UP [[Compare Java to MUMPS/Collect Language Ideas|Collect Language Ideas]]
 
__TOC__
 
__TOC__
== Introduction ==
+
</noinclude><include>
MUMPS has abbreviations for each command. We will have sections in this page for each character of the alphabet.
+
{{:MUMPS/MUMPS Language Elements}}
This information is from [[Ed de Moel]]'s (MUMPS by Example web page).
+
</include>
 
 
== Commands ==
 
=== command A ===
 
Currently. now the letter A is not an abbreviation for any command
 
The letter A used to be the Abbreviation for the command ASSIGN
 
The letter A used to be the Abbreviation for the command ASK
 
=== command  B ===
 
Currently. the letter B is the Abbreviation for the command  BREAK
 
=== command  C ===
 
Currently. the letter C is the Abbreviation for the command CLOSE
 
=== command  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
 
=== 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 ELSE
 
=== 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
 
=== 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 NULL
 
=== command  O ===
 
Currently. the letter  O is the Abbreviation for the command OPEN
 
=== 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
 
=== 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:
 
=== 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
 
=== command  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 ===
 
Currently. the letter Y is not an abbreviation for any command
 
=== command  Z ===
 
Currently. the letter  Z is not an Abbreviation for any command
 
Currently. letter Z is the prefix for several commands
 

Latest revision as of 13:49, 5 June 2019

UP Collect Language Ideas

<include>

Introduction

The M Computer Language (sometimes called 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 M Language and are implemented by all Standard M vendors. Any commands that are not implemented by all Standard M 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 GOTO.  

command H or h

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

HALT or halt or h or H

Currently, the letter sequence H is the abbreviation for the Command HALT.

HANG or hang or h or H

Currently, the letter sequence H is the abbreviation for the Command HANG.

command I or i

 Currently, the letter I is the abbreviation for the Command IF. 

IF or if or i or I

Currently, the letter sequence I is the abbreviation for the Command IF. 

command J or j

 Currently, the letter J is the abbreviation for the Command JOB. 

JOB or job or j or J

Currently, the letter sequence J is the abbreviation for the Command JOB.

The JOB command allows a programmer to specify another M job should be initiated.

command K or k

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

KILL or kill or k or K

Currently, the letter sequence K is the abbreviation for the Command KILL.
M/Command KSUBSCRIPTS
M/Command KVALUE 

command L or l

 Currently, the letter L is the abbreviation for the Command LOCK. 

LOCK or lock or l or L

Currently, the letter sequence L is the abbreviation for the Command LOCK.

command M or m

 Currently, the letter M is the abbreviation for the Command MERGE. 

MERGE or merge or m or M

Currently, the letter sequence M is the abbreviation for the Command MERGE. 

command N or n

 Currently, the letter N is the abbreviation for the Command NEW. 

NEW or new or n or N

Currently, the letter sequence N is the abbreviation for the Command NEW. 

command N or n

 Currently, the letter O is the abbreviation for the Command OPEN. 

OPEN or open or o or O

Currently, the letter sequence O is the abbreviation for the Command OPEN. 

command P or p

There are no commands in the M language that start with the letter P.

command Q or q

 Currently, the letter Q is the abbreviation for the Command QUIT. 

QUIT or quit or q or Q

Currently, the letter sequence Q is the abbreviation for the Command QUIT. 

command R or r

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

READ or read or r or R

Currently, the letter sequence R is the abbreviation for the Command READ.
M/Command RSAVE
M/Command RLOAD 

command S or s

 Currently, the letter S is the abbreviation for the Command SET. 
M/Command SET 

command T or t

 Currently, the letter sequence T is the prefix for several commands: 
M/Command TCOMMIT
M/Command TRESTART
M/Command TROLLBACK
M/Command TSTART

command U or u

 Currently, the letter U is the abbreviation for the Command USE. 
M/Command USE 

command V or v

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

VIEW or V or view or v command

Currently, the letter sequence V is the abbreviation for the Command VIEW.
As per the M Standard all  are defined by an implementation from a Template:M/vendor.
 

command W or w

 Currently, the letter W is the abbreviation for the Command WRITE. 

  1. REDIRECTM/WRITE

command X or x

 Currently, the letter X is the abbreviation for the Command XECUTE.

command Y or y

There are no commands in the M language that start with the letter Y. 

command Z or z

There are no commands in the M language that start with the letter Z.
all commands that start with Z are considered to be at the implementation's choice.
 Currently, the letter sequence Z is the prefix for several commands: 
M/Command ZCOMMAND

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

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

(Intrinsic) Special_Variables svn

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

Functions

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

</include>