![]() ![]() |
|
MATWRITEUThe MATWRITEU statement transfers the entire contents of a dimensioned array to a specified record on file, in the same manner as the MATWRITE statement. An existing record lock will be preserved.
COMMAND SYNTAXMATWRITEU array ON { variable,}expression {SETTING setvar} {ON ERROR statements}
SYNTAX ELEMENTSarray should be a previously dimensioned and initialized array. If specified, variable should be a previously opened file variable (i.e. the subject of an OPEN statement). If variable is not specified the default file variable is used. expression should evaluate to the name of the record in the file. If the SETTING clause is specified and the write succeeds, setvar will be set to the number of attributes read into array. If the SETTING clause is specified and the write fails, setvar will be set to one of the following values: Incremental File Errors
If ON ERROR is specified, the statements following the ON ERROR clause will be executed for any of the above Incremental File Errors except error 128.
NOTESThe compiler will check that the variable specified is indeed an array and has been dimensioned before its use in the statement.
EXAMPLES
|