If you wish to focus on program development from the GT.M environment rather than from VMS, skip over this section and continue with the section "Qualifiers for the MUMPS Command".
In DCL, invoke the compiler by entering MUMPS file-spec at the DCL prompt.
Example:
$ MUMPS PAYROLL $ MUMPS TAXES
This uses the MUMPS command to invoke the GT.M compiler from the DCL prompt.
Use the MUMPS command at the DCL prompt to:
Check the syntax of a newly entered program.
Optionally, get a formatted listing of the program.
Ensure that all object code is up to date before linking.
The MUMPS command invokes the compiler to translate an M source file into object code. Various qualifiers to this command control the output of the compiler. Most of these qualifiers affect the type of listing produced by the compiler.
The format for the MUMPS command is:
UMPS [/qualifier[...]] file-spec
By default, GT.M assumes source programs have an extension of .M
Each file-specification identifies an M source program to compile.
Qualifiers determine characteristics of the compiler output.
Qualifiers may be applied globally by placing them on the MUMPS command or locally by placing them on a file-specification in the parameter list; local qualifiers override global qualifiers.
GT.M allows the VMS * and % wildcards in a file-specification.
The * wildcard accepts any legal combination of numbers and characters including a null, in the position the wildcard holds.
The % wildcard accepts exactly one legal character in its position.
For example, MUMPS * compiles all files in the current default directory with a .M extension. MUMPS *pay% compiles any .M files with names that contain any characters followed by "pay," followed by one character.
![]() |
|
When forming routine names, the compiler truncates default filenames to eight characters. For example, the compiler considers the routine name for a source file INTEGRATEBYPARTS.M to be INTEGRAT.M. Avoid relying on default names in situations where several modules have names where the first eight characters are identical. |