| |
| |
Preface | |
| |
| |
| |
Introduction to MUMPS | |
| |
| |
| |
How to Use This Book | |
| |
| |
| |
Introduction to MUMPS | |
| |
| |
| |
A Brief History of MUMPS | |
| |
| |
| |
The MUMPS Development Committee (MDC) | |
| |
| |
| |
MUMPS Users' Group | |
| |
| |
| |
Availability of MUMPS | |
| |
| |
| |
How to Use MUMPS | |
| |
| |
| |
Signing onto MUMPS | |
| |
| |
| |
Issuing MUMPS Commands from the Keyboard | |
| |
| |
| |
Entering and Editing Programs | |
| |
| |
| |
Loading a Program from Disk | |
| |
| |
| |
Executing a Program | |
| |
| |
| |
Exiting MUMPS | |
| |
| |
| |
Chapter Highlights | |
| |
| |
| |
The MUMPS Environment | |
| |
| |
| |
Interpreters | |
| |
| |
| |
Concept of Directories and Partitions | |
| |
| |
| |
Partitions | |
| |
| |
| |
Directories | |
| |
| |
| |
Name Spaces: Local and Global | |
| |
| |
| |
Jobs (Processes) | |
| |
| |
| |
Chapter Highlights | |
| |
| |
| |
MUMPS Commands | |
| |
| |
| |
Assignment Commands | |
| |
| |
| |
SET Command | |
| |
| |
| |
KILL Command | |
| |
| |
| |
NEW Command | |
| |
| |
| |
Conditional Commands | |
| |
| |
| |
IF Command | |
| |
| |
| |
ELSE Command | |
| |
| |
| |
FOR Command | |
| |
| |
| |
Flow Control Commands | |
| |
| |
| |
GOTO Command | |
| |
| |
| |
DO Command | |
| |
| |
| |
QUIT Command | |
| |
| |
| |
HALT Command | |
| |
| |
| |
XECUTE Command | |
| |
| |
| |
Input/Output Commands | |
| |
| |
| |
OPEN Command | |
| |
| |
| |
USE Command | |
| |
| |
| |
READ Command | |
| |
| |
| |
WRITE Command | |
| |
| |
| |
CLOSE Command | |
| |
| |
| |
PRINT Command | |
| |
| |
| |
System and Miscellaneous Commands | |
| |
| |
| |
BREAK Command | |
| |
| |
| |
HANG Command | |
| |
| |
| |
JOB Command | |
| |
| |
| |
LOCK Command | |
| |
| |
| |
VIEW Command | |
| |
| |
| |
ZLOAD Command | |
| |
| |
| |
ZINSERT Command | |
| |
| |
| |
ZREMOVE Command | |
| |
| |
| |
ZPRINT Command | |
| |
| |
| |
ZSAVE Command | |
| |
| |
| |
Miscellaneous Z Commands | |
| |
| |
| |
Summary | |
| |
| |
| |
Data Structures | |
| |
| |
| |
Strings | |
| |
| |
| |
Numbers | |
| |
| |
| |
Exponential Notation | |
| |
| |
| |
Numeric Interpretation of Strings | |
| |
| |
| |
Boolean (True/False) | |
| |
| |
| |
Variables | |
| |
| |
| |
Local Variables | |
| |
| |
| |
Arrays | |
| |
| |
| |
Globals | |
| |
| |
| |
System Variables | |
| |
| |
| |
Chapter Highlights | |
| |
| |
| |
Expressions | |
| |
| |
| |
Numeric Operators: +, -, *, **, /, \, and # | |
| |
| |
| |
Unary Operators: + and - | |
| |
| |
| |
Binary Numeric Operators | |
| |
| |
| |
String Operators: Concatenate, -(Underscore) | |
| |
| |
| |
Logical and Relational Operators: ], [, = [,], ?, and, !, and' | |
| |
| |
| |
Numeric Relational Operators | |
| |
| |
| |
String Relational Operators | |
| |
| |
| |
Logical Operators | |
| |
| |
| |
Combined Operator Types | |
| |
| |
| |
Chapter Highlights | |
| |
| |
| |
MUMPS Syntax | |
| |
| |
| |
Commands | |
| |
| |
| |
Command Arguments | |
| |
| |
| |
Implied Commands | |
| |
| |
| |
Command Abbreviation and Command Case | |
| |
| |
| |
Conditional Execution of Commands | |
| |
| |
| |
Timed Commands | |
| |
| |
| |
Comments | |
| |
| |
| |
Lines | |
| |
| |
| |
Subroutines (Parts) | |
| |
| |
| |
Routines | |
| |
| |
| |
Programs | |
| |
| |
| |
Block Structuring | |
| |
| |
| |
Chapter Highlights | |
| |
| |
| |
Indirection | |
| |
| |
| |
XECUTE Command | |
| |
| |
| |
Indirection Operator | |
| |
| |
| |
Name Indirection | |
| |
| |
| |
Argument Indirection | |
| |
| |
| |
Pattern Indirection | |
| |
| |
| |
Subscript Indirection | |
| |
| |
| |
Dynamic Routine Linking | |
| |
| |
| |
Indirection: Cautions and Caveats | |
| |
| |
| |
Chapter Highlights | |
| |
| |
| |
Intrinsic Functions | |
| |
| |
| |
String Functions | |
| |
| |
| |
$EXTRACT | |
| |
| |
| |
SPIECE Function | |
| |
| |
| |
$LENGTH Function | |
| |
| |
| |
$FIND Function | |
| |
| |
| |
$TRANSLATE Function | |
| |
| |
| |
$JUSTIFY Function | |
| |
| |
| |
$FNUMBER Function | |
| |
| |
| |
$ASCII Function | |
| |
| |
| |
$CHAR Function | |
| |
| |
| |
$TEXT Function | |
| |
| |
| |
Data Functions | |
| |
| |
| |
$DATA Function | |
| |
| |
| |
$ORDER Function | |
| |
| |
| |
$NEXT Function (OBSOLETE) | |
| |
| |
| |
$QUERY Function | |
| |
| |
| |
$GET Function | |
| |
| |
| |
Other Functions | |
| |
| |
| |
$SELECT Function | |
| |
| |
| |
$RANDOM Function | |
| |
| |
| |
$VIEW Function | |
| |
| |
| |
$Z... Functions | |
| |
| |
| |
Summary | |
| |
| |
| |
Parameter Passing and Extrinsic Functions | |
| |
| |
| |
Parameter Passing with the DO Command | |
| |
| |
| |
Passing Parameters by VALUE | |
| |
| |
| |
Parameter Passing by REFERENCE | |
| |
| |
| |
Extrinsic Functions | |
| |
| |
| |
Extrinsic Variables | |
| |
| |
| |
Subroutine Libraries | |
| |
| |
| |
Conversion of $H Time and Date to Readable Format | |
| |
| |
| |
Check and Conversion of Numbers | |
| |
| |
| |
Numeric Conversion between Bases | |
| |
| |
| |
Simple Statistics | |
| |
| |
| |
An Extrinsic Function to Replace Strings | |
| |
| |
| |
Parameter Passing with the JOB Command | |
| |
| |
| |
Technique and Style | |
| |
| |
| |
Chapter Highlights | |
| |
| |
| |
Advanced Global Techniques | |
| |
| |
| |
Introduction to Globals | |
| |
| |
| |
Subscripts | |
| |
| |
| |
Subscript Collating Sequence | |
| |
| |
| |
$ORDER and $DATA Functions | |
| |
| |
| |
Naked Global References | |
| |
| |
| |
The LOCK Command | |
| |
| |
| |
Global Extensions | |
| |
| |
| |
Distributed Databases | |
| |
| |
| |
Replication | |
| |
| |
| |
Journaling | |
| |
| |
| |
Global Security | |
| |
| |
| |
Advanced Examples: Global Dumps and Copy Utilities | |
| |
| |
| |
Database Design | |
| |
| |
| |
Inverted or Key Indexes | |
| |
| |
| |
Reference Files | |
| |
| |
| |
Searching and Sorting | |
| |
| |
| |
Chapter Highlights | |
| |
| |
| |
MUMPS Internals | |
| |
| |
| |
Global Disk Files | |
| |
| |
| |
Adding Data to a B-Tree | |
| |
| |
| |
B-Tree Variants | |
| |
| |
| |
Multiple Subscript Levels | |
| |
| |
| |
Key Compression | |
| |
| |
| |
Deleting Data from a B-Tree | |
| |
| |
| |
Buffering | |
| |
| |
| |
Storage Efficiency Considerations | |
| |
| |
| |
Database Errors | |
| |
| |
| |
MUMPS Program Execution | |
| |
| |
| |
Chapter Highlights | |
| |
| |
| |
Device Input/Output | |
| |
| |
| |
General I/O Environment | |
| |
| |
| |
The Principal Device | |
| |
| |
| |
System Variables Associated with I/O Operations | |
| |
| |
| |
Devices | |
| |
| |
| |
Video Terminals | |
| |
| |
| |
Printing Terminals | |
| |
| |
| |
Magnetic Tape Drives | |
| |
| |
| |
Sequential Disk Files | |
| |
| |
| |
Print Spool Devices | |
| |
| |
| |
Miscellaneous Devices | |
| |
| |
| |
Advanced Topics on Device I/O | |
| |
| |
| |
Screen Handling Utilities | |
| |
| |
| |
Keyboard Input: Single-Character READ Function | |
| |
| |
| |
Option Lists and Multiple-Choice Questions | |
| |
| |
| |
Editing Keyboard Read | |
| |
| |
| |
Question Driver | |
| |
| |
| |
Summary of Advanced I/O Topics | |
| |
| |
| |
Chapter Highlights | |
| |
| |
| |
Error Processing | |
| |
| |
| |
Trapping Errors | |
| |
| |
| |
Debugging Programs | |
| |
| |
| |
Chapter Highlights | |
| |
| |
| |
MUMPS: The Evolving Language | |
| |
| |
| |
Networking | |
| |
| |
| |
Networking between MUMPS Implementations | |
| |
| |
| |
Networking with Non-MUMPS Environments | |
| |
| |
| |
Enhanced Device Control | |
| |
| |
| |
Access to Other Languages | |
| |
| |
| |
Use of Alternative Character Sets | |
| |
| |
| |
Standardized Error Processing | |
| |
| |
| |
Miscellaneous Language Changes | |
| |
| |
| |
Concluding Remarks | |
| |
| |
| |
ASCII Character Set | |
| |
| |
| |
Selected MUMPS References | |
| |
| |
| |
Summary of MUMPS Commands | |
| |
| |
| |
Summary of MUMPS Intrinsic Functions | |
| |
| |
| |
Summary of MUMPS Operators | |
| |
| |
| |
Summary of System Variables | |
| |
| |
| |
Documentation for Selected Subroutines | |
| |
| |
| |
RS-232 Devices | |
| |
| |
| |
Terminal Functions | |
| |
| |
Index | |