Close (Dataset subroutine)
Jump to navigation Jump to search
Close this dataset (Dataset class)
dataset:Close Throws WriteError
|dataset||A variable containing a reference to a Dataset object to be closed.|
- 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.
- You can re-Open a Dataset that was Closed. 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).