File report mode

file_id->report_mode = 0 | FOM_READ

If a file in a report has report_mode set to 0 (which is the default), and the file is not open in read-only mode, its records are locked when read automatically by the !drive or !xfile command during the report. If report_mode is set to FOM_READ, the records are read unlocked, even if the file is open in update mode. A file’s report mode can be changed at any time, even in the middle of a report.

Note that this applies only to an automatic read generated by !drive or !xfile. A normal read command on the file still locks the record.

FOM_READ is one of a set of file state definitions in $SCULPTOR/include.files.h.


RELATED TOPICS

Keyed files

Reports

![o]file