Closing a data set
A closed status for a data set is important because it enables a data set for reading. The ability to write to a closed data set is controlled by the O line command; see Changing-recording-eligibility.
Also, a data set must be closed before the following historical management tasks can be performed:
- Changing-recording-eligibility
- Selecting-the-next-data-set-for-recording
- Emptying-a-historical-data-set
- Deallocating-a-historical-data-set
The following table describes how to close a data set for each Status field value.
Closing a historical data set
Status | Command | Reference |
---|---|---|
Active |
| |
Closed | O line command to set recording eligibility | |
Error | R line command to make the data set eligible for recording again The R line command empties the data in the data set. If you can determine a reason for the error condition based on diagnostic messages, you may be able to archive the data set before resetting it. | |
Open | None The data set is pending a closed condition and should close automatically unless an error condition is present. An Open status rarely occurs. If this status is retained for more than one interval, an I/O error could be keeping the data set from closing. | Operator's console or job log for messages that might indicate a reason why the data set cannot close |
Qscd | U line command to change the Qscd status to Closed |