Closing a data set


There are a number of ways to close a data set, depending on the data set's current status.

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:

The following table describes how to close a data set for each Status field value.

Closing a historical data set

Status

Command

Reference

Active

  • F or Q line command to change the Active status to Qscd
  • U line command to change the status from Qscd to Closed

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

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*