The following is the list of manual pages for the mf routines in alphabetical order:
| Description |
Closes all tables and de-allocate all existing mf-related variables. This procedure is intended for use on terminating a program due to an error condition or at rapped interrupt. |
| Synopsis |
subroutine mfacls |
| Usage |
call mfacls |
| Warning |
Indiscriminate use of this procedure defeats all the built-in error checking mechanisms of the mf routines. |
| Description |
Inserts a record into a given table. The record should have been constructed using mfptvs, mfptvi and mfput. | ||||
| Synopsis |
logical function mfadd(table) character*(*) table | ||||
| Usage |
flag = mfadd (table)
| ||||
| Returns |
.TRUE. if successful; .FALSE.if unsuccessful. | ||||
| Warning |
The table must be opened in deferred or update mode or the add will fail. |
| Description |
Executes a Query Language command for the named database from a Fortran program. | ||||||
| Synopsis |
integer*4 function mfcall (database,command) character(*)* database,command | ||||||
| Usage |
code = mfcall (database, command)
| ||||||
| Returns |
The exit status of the command; 0 indicates the command was successful and any other value indicates failure. |
| Description |
Checks whether a particular attribute is in an opened table. | ||||
| Synopsis |
logical function mfchka(attribute) character*(*) attribute | ||||
| Usage |
flag = mfchka (attribute)
| ||||
| Returns |
.TRUE. if the attribute exists;.FALSE. if it does not. |
| Description |
Cleans up after mf routines. |
| Synopsis |
subroutine mfcln |
| Usage |
call mfcln |
| Returns |
None. |
| Description |
Closes a table after all operations have been performed on it. | ||
| Synopsis |
subroutine mfclos (table) character*(*) table | ||
| Usage |
call mfclos (table)
| ||
| Returns |
None. |
| Description |
Finds whether a constant is equal to, less than, or greater than an attribute value. | ||||||
| Synopsis |
integer*4 function mfcomp (attribute, value) character*(*) attribute, value | ||||||
| Usage |
result = mfcomp (attribute, value)
| ||||||
| Returns |
0 if the constant is equal to the attribute value, 1 if the attribute value is greater than the constant, and -1 if the attribute value is less than the constant. |
| Description |
Copies the internal representation of an attribute value to a variable. | ||||||
| Synopsis |
logical function mfcpi (attribute, variable) character*(*) attribute ANYTYPE variable | ||||||
| Usage |
flag = mfcpi (attribute, variable)
| ||||||
| Returns |
.TRUE. if value is not NULL, .FALSE. otherwise. | ||||||
| Warnings |
Using this routine results in non-portable code. |
| Description |
Deletes a record from a table. | ||||
| Synopsis |
logical function mfdel (table) character*(*) table | ||||
| Usage |
flag = mfdel (table)
| ||||
| Returns |
.TRUE. if successful, .FALSE. if unsuccessful. | ||||
| Notes |
The record to be deleted must first have been specified in a call to mfgetb and then retrieved by a successful call to mfget. |
| Description |
Prevents the normal failures from terminating the calling program. | ||
| Synopsis |
subroutine mferrt (value) integer*4 value | ||
| Usage |
call mferrt (value)
| ||
| Warnings |
The msfer.h header file must be used instead of msf.h. |
| Description |
Retrieves the next record from a table. Successive calls attempt to retrieve different records. | ||
| Synopsis |
integer*4 function mfget | ||
| Usage |
flag = mfget
| ||
| Notes |
mfgetb must be called once before any calls to mfget are made. mfgete must be called after one or more calls to mfget to do cleaning up. |
| Description |
Initializes a retrieval from one or more tables. | ||||||
| Synopsis |
logical function mfgetb (table_1, [ ...table_n], '\0') character*(*) table_1,... table_n | ||||||
| Usage |
flag = mfgetb (table_1, table_2, ... table_n, '\0')
| ||||||
| Returns |
.TRUE. if successful, .FALSE. if unsuccessful. | ||||||
| Notes |
Nested calls to mfgetb must be set up carefully. Possible problems are explained fully in Chapter 4. |
| Description |
Cleans up after retrieving records from a table. |
| Synopsis |
subroutine mfgete |
| Usage |
call mfgete |
| Returns |
None. |
|
Failure to call mfgete after retrieving records may affect future record retrievals. Possible problems are explained fully in Chapter 4. |
| Description |
Retrieves the value (external representation) of an attribute from a record into a variable. | ||||||||
| Synopsis |
integer*4 function mfgetv (variable, length, attribute) integer*4 length character*(*) variable, attribute | ||||||||
| Usage |
vlen = mfgetv (variable, length, attribute)
| ||||||||
| Notes |
It will be necessary to call mfgetv again with a longer variable to retrieve the full value. |
| Description |
Retrieves the value of an attribute from a record as an integer. | ||||
| Synopsis |
integer*4 function mfgtvi (attribute) character*(*) variable, attribute | ||||
| Usage |
value = mfgtvi (attribute)
| ||||
| Warnings |
The calling program will be terminated if the attribute value cannot be converted to an integer. |
| Description |
Finds the name of an attribute given its number in a table. | ||||||||||
| Synopsis |
integer*4 function mfigta (variable, length, table, number) integer*4 length, number character*(*) variable, table | ||||||||||
| Usage |
vlen = mfigta (variable ,length, table, number)
| ||||||||||
| Returns |
The length of the attribute name (0 if there is no attribute of that number in the table). | ||||||||||
| Notes |
If vlen is greater than length, only part of the attribute name will have been retrieved. It will be necessary to call mfigta again with a longer variable to retrieve the full name. |
| Description |
Initializes for mf routines. |
| Synopsis |
subroutine mfinit |
| Usage |
call mfinit |
| Returns |
None. |
| Description |
Opens and locks a table for use with the Empress Database Manipulation Language Interface (mf routines). | ||||||||
| Synopsis |
logical function mfopen (directory, table, mode) character*(*) directory, table, mode | ||||||||
| Usage |
flag = mfopen (directory, table, mode)
| ||||||||
| Returns |
.TRUE. if successful, .FALSE.if unsuccessful. | ||||||||
| Notes |
If mfopen is unsuccessful, the program calling is terminated. | ||||||||
| Warnings |
It is not recommended to specify the current directory when calling mfopen (i.e., run applications in the database directory), due to the danger of damaging the files in the database when new files are created. If read mode is specified and the user has no read permission on the table, or if update mode is specified and the user has no read and write permission on the table, mfopen will fail. |
| Description |
Find the error code set by failure of one of the other mf routines. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Synopsis |
integer*4 function mfoper | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Usage |
code = mfoper
Integer Error Codes
|
| Description |
Retrieves the previous record from a table. Successive calls attempt to retrieve different records. | ||
| Synopsis |
integer*4 function mfprev | ||
| Usage |
flag = mfprev
| ||
| Notes |
mfgetb must be called once before any calls to mfprev are made. mfgete must be called after one or more calls to mfprev to do cleaning up. |
| Description |
Print an error message depending on a previous error; |
| Synopsis |
subroutine mfprte |
| Usage |
call mfprte |
| Description |
Assigns an integer value to a given attribute in a record. | ||||||
| Synopsis |
logical function mfptvi (attribute, value) character*(*) attribute integer*4 value | ||||||
| Usage |
flag = mfptvi (attribute, value)
| ||||||
| Returns |
.TRUE. if successful; .FALSE. if unable to assign the value to the attribute. |
| Description |
Assigns an external format value to a given attribute in a record. | ||||||
| Synopsis |
logical function mfptvs (attribute, value) character*(*) attribute, value | ||||||
| Usage |
flag = mfptvs (attribute, value)
| ||||||
| Returns |
.TRUE. if successful; .FALSE. if unable to assign the value to the attribute. |
| Description |
Updates a record. | ||||
| Synopsis |
logical function mfput (table) character*(*) table | ||||
| Usage |
flag = mfput (table)
| ||||
| Returns |
.TRUE. if successful; .FALSE. if unsuccessful. | ||||
| Warnings |
The record to be replaced must be first obtained by calls to mfgetb and mfget, otherwise mfput will fail. |
| Description |
Assigns a value (internal representation) to a given attribute in a record. | ||||||
| Synopsis |
logical function mfputi (attribute, variable) character*(*) attribute anytype variable | ||||||
| Usage |
flag = mfputi (attribute, variable)
| ||||||
| Returns |
.TRUE. if successful; .FALSE. if unable to assign the value to the attribute. | ||||||
| Warnings |
The use of this routine results in non-portable code. The variable type must be compatible with the Empress internal representation of the attribute in question, or a conversion error will result. |
| Description |
Performs an AND operation on the top two values of the stack holding qualifications created by calls to the mfq routines. |
| Synopsis |
subroutine mfqand |
| Usage |
call mfqand |
| Warnings |
There must be at least two qualifications on the stack, or mfqand will fail. |
| Description |
Compares an attribute value to another attribute value and stores result on a stack. | ||||||||
| Synopsis |
logical function mfqatr (operator, attribute_1, attribute_2) character*(*) attribute_1, attribute_2 character*(*) operator | ||||||||
| Usage |
flag = mfqatr (operator, attribute_1, attribute_2)
| ||||||||
| Warnings |
The two attributes compared must be compatible. |
| Description |
Compares an attribute value to a constant and stores the result on a stack. | ||||||||
| Synopsis |
logical function mfqc (operator, attribute, value) character*(*) attribute, value character*(*) operator | ||||||||
| Usage |
flag = mfqc (operator, attribute, value)
| ||||||||
| Notes |
A "Conversion Error" message will be printed if the attribute and value are not compatible. |
| Description |
Compares an attribute value to a constant in internal representation and stores the result on a stack. | ||||||||
| Synopsis |
logical function mfqci (operator, attribute, variable) character*(*) attribute, operator ANYTYPE variable | ||||||||
| Usage |
flag = mfqci (operator, attribute, variable)
| ||||||||
| Warnings |
Using this routine results in non-portable code. A "Conversion Error" message will be printed if the attribute and value are not compatible. |
| Description |
Compares an attribute value to an integer using an "equals" operator and stores the result on a stack. | ||||
| Synopsis |
subroutine mfqieq ( attribute, variable) character*(*) attribute integer*4 variable | ||||
| Usage |
call mfqieq (attribute, variable)
| ||||
| Warnings |
If the attribute and value are not compatible, the calling program is terminated and a "Conversion Error" message printed. |
| Description |
Compares an attribute value to a pattern, and stores the result on a stack. | ||||||||
| Synopsis |
logical function mfqmch (operator, attribute, pattern) character*(*) operator, attribute, pattern | ||||||||
| Usage |
flag = mfqmch ( operator, attribute, pattern)
|
| Description |
Reverses the sense of (negate) the top qualification on the stack holding qualifications created by the mfq routines. |
| Synopsis |
subroutine mfqnot |
| Usage |
call mfqnot |
| Warnings |
There must be at least one qualification on the stack or mfnot will fail. |
| Description |
Compares an attribute value to NULL, and store the result on a stack. | ||||||
| Synopsis |
logical function mfqnul (operator, attribute) character*(*) operator, attribute | ||||||
| Usage |
flag = mfqnul (operator, attribute)
|
| Description |
Performs an OR operation on the top two elements of the stack holding qualifications created by the mfq routines. |
| Synopsis |
subroutine mfqor |
| Usage |
call mfqor |
| Warnings |
There must be at least two qualifications on the stack or mfqor will fail. |
| Description |
Compares an attribute value to a given range of values. | ||||||||||
| Synopsis |
logical function mfqrg (attribute, lower_value,
indicator upper_value, indicator)
character*(*) attribute, lower_value, upper_value
character*(*) indicator | ||||||||||
| Usage |
flag = mfqrg (attribute, lower, indicator, upper, indicator)
|
| Description |
Compares an attribute value to a given range of values. | ||||||||||
| Synopsis |
logical function mfqrgi (attribute, lower, indicator,
upper, indicator)
character*(*) attribute, indicator
ANYTYPE upper, lower | ||||||||||
| Usage |
flag = mfqrgi (attribute, lower, indicator, upper, indicator)
| ||||||||||
| Notes |
Using this routine results in non-portable code. |
| Description |
Compares an attribute value to a character string using an "equals" operator. | ||||
| Synopsis |
subroutine mfqseq (attribute, value) character*(*)attribute, value | ||||
| Usage |
call mfqseq (attribute, string)
| ||||
| Warnings |
If the string and the attribute are incompatible, the calling program is terminated and a "Conversion Error" message printed. |
| Description |
Attempts to retrieve the next record from a table. Successive calls attempt to retrieve the same record. | ||
| Synopsis |
integer*4 function mfrget | ||
| Usage |
flag = mfrget
| ||
| Returns |
1 if successful; 0 on end of file; and -1 if the record is locked. | ||
| Notes |
mfgetb must be called once before any calls to mfrget are made. mfgete must be called after one or more calls to mfrget (or mfget) to do cleaning up. |
| Description |
Attempts to retrieve the previous record from a table. Successive calls attempt to retrieve the same record. | ||
| Synopsis |
integer*4 function mfrprv | ||
| Usage |
flag = mfrprv
| ||
| Returns |
1 if successful; 0 on end of file; and -1 if the record is locked. | ||
| Notes |
mfgetb must be called once before any calls to mfrprv are made. mfgete must be called after one or more calls to mfrprv (or mfprev) to do cleaning up. |
| Description |
Assigns a NULL value to all attributes in a record. | ||
| Synopsis |
subroutine mfsetn (table) character*(*) table | ||
| Usage |
call mfsetn (table)
| ||
| Returns |
None. |
| Description |
Associates a given qualification with one or more records, and indicates how retrieved values should be sorted. | ||||||||||||
| Synopsis |
logical function mfsrtb (indicator, table_1,
[... table_n], '\0', attribute, type,
[attribute, type, ...] '\0')
character*(*) indicator, table_1, ... table_n, type,
attribute | ||||||||||||
| Usage |
flag = mfsrtb (table_1, table_2, ... table_n, '\0',
attribute_1, type, attribute_2, type,..., '\0')
| ||||||||||||
| Returns |
.TRUE. if successful; .FALSE. if not all appropriate records could be accessed. | ||||||||||||
| Warnings |
Nested calls to mfsrtb must be set up carefully.Possible problems are explained fully in Chapter 4. |
| Description |
Cleans up after mf routines and stops the program. |
| Synopsis |
subroutine mfstop |
| Usage |
call mfstop |
| Returns |
None. |
| Description |
Commits a transaction; returns the database to its pre-transaction state. | ||
| Synopsis |
logical function mftrcm | ||
| Usage |
flag = mftrcm
| ||
| Returns |
.TRUE. if successful; .FALSE. if not. |
| Description |
Cancels a transaction; returns the database to its pre-transaction state. | ||
| Synopsis |
logical function mftrcn | ||
| Usage |
flag = mftrcn
| ||
| Returns |
.TRUE. if successful; .FALSE.if not. |
| Description |
Starts a transaction. | ||
| Synopsis |
logical function mftrst | ||
| Usage |
flag = mftrst
| ||
| Returns |
.TRUE. if successful; .FALSE. if not. Failure usually means a transaction is already in progress. |
The following are the manual pages for the Standard Interface routines in alphabetical order.