Close (Dataset subroutine)

From m204wiki
Revision as of 18:03, 20 May 2011 by DmeWiccan (talk | contribs) (1 revision)
Jump to navigation Jump to search

Close this dataset (Dataset class)


This subroutine closes a dataset object.

Syntax

dataset:Close Throws WriteError

Syntax terms

%dataset A variable containing a reference to a Dataset object to be closed.

Usage notes

  • A Close of an output dataset ensures that all output data is written to disk.
  • A Close of a dataset releases any internal locks on the underlying dataset or stream. This allows another thread or user to access the dataset.
  • A dataset object that is Closed can be re-Opened. If the object is re-Opened in input mode, it will be re-opened at the beginning, not where it left off at the time of the Close. If the object is re-opened in output mode, it will either write over the start of the file or append to the end, depending on whether or not the dataset or stream definition indicates append mode (DISP MOD).

See also