Difference between revisions of "Compare Java to MUMPS/Ideas from MUMPS"
From VistApedia
JohnNgarambe (talk | contribs) |
DavidWhitten (talk | contribs) |
||
(27 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__ | ||
− | + | </noinclude><include> | |
− | MUMPS | + | {{:MUMPS/MUMPS Language Elements}} |
− | + | </include> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 13:49, 5 June 2019
Contents
- 1 Introduction
- 2 Commands
- 3 command A or a
- 3.1 ASSIGN or assign or a or A
- 3.2 ABLOCK or ablock or ab or AB
- 3.3 ASTART or astart or asta or ASTA
- 3.4 ASTOP or astop or asto or ASTO
- 3.5 AUNBLOCK or aunblock or aunb or AUNB
- 3.6 command B or b
- 3.7 command C or c
- 3.8 command D or d
- 3.9 command E or e
- 3.10 ELSE or else or e or E
- 3.11 ESTART or estart or esta or ESTA
- 3.12 ESTOP or estop or esto or ESTO
- 3.13 ETRIGGER or etrigger or etri or ETRI
- 3.14 command F or f
- 3.15 FOR or for or f or F
- 3.16 command G or g
- 4 command H or h
- 4.1 HALT or halt or h or H
- 4.2 HANG or hang or h or H
- 4.3 command I or i
- 4.4 IF or if or i or I
- 4.5 command J or j
- 4.6 JOB or job or j or J
- 4.7 command K or k
- 4.8 command L or l
- 4.9 command M or m
- 4.10 MERGE or merge or m or M
- 4.11 command N or n
- 4.12 NEW or new or n or N
- 4.13 command N or n
- 4.14 OPEN or open or o or O
- 5 command P or p
- 6 command T or t
- 7 command Y or y
- 8 command Z or z
- 9 Operators - note: use punctuation in parentheses, not operator name
- 10 (Intrinsic) Special_Variables svn
- 11 Functions
<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.
- 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
(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>