Next: Library references
Up: Coding rules
Previous: FORTRAN code
Each MIDAS command must have a procedure, written in the MIDAS Control
Language (MCL), which handles the command line parameters and defines
the keywords used by the actual application coded. The procedure will
execute the basic modules (i.e. using the RUN command).
The rules for MIDAS procedures are:
- Command line parameters must be defined by the CROSSREF
command which must be the first command.
- Parameters must be defined by a DEFINE/PARAMETER command.
These commands must follow immediately after the CROSSREF
- Local variables must be declared with the DEFINE/LOCAL
- Each module must contain a comment header block which defines
name, purpose, author, version etc.
(see Section ).
- Indentation of at least two columns must be made for each level
of IF-THEN/ELSE/ENDIF and DO/ENDDO statements.
- All MIDAS commands must be specified completely, i.e. 6 characters
for the command verb and 4 characters for the qualifier.