Starting and stopping the IMSRSC repository

An IMSRSC repository can have a status of closed, opening, open, stopping, or stopped. Start or stop a repository to make it available or unavailable for client connections.

CLOSED
The repository is defined to the Repository Server (RS) and it is started, but its associated data sets are closed. The RS accepts client connections to the repository, but because the repository has not yet been opened and its associated data sets have not been allocated by the RS, you cannot write or read from the repository in this state.
If a repository remains in CLOSED state at the end of SPARE recovery processing, perform the following steps to make the repository available:
  1. Re-allocate the discarded repository data sets.
  2. Issue the LIST FRPBATCH command to check if the repository is in a STOP state. If it is not, issue the STOP FRPBATCH command to change the state to STOP.
  3. Issue the DSCHANGE FRPBATCH command to change the re-allocated discarded data sets back to a SPARE state.
  4. Issue the START FRPBATCH command to start the repository.

    This resumes the data set recovery process.

OPENING
The repository is in the process of being opened.
OPEN
Started and opened. The repository is available for client connections and read and update requests.
Starting a repository makes it possible for connections to be made to it. The following functions are performed when a repository is started:
  • The repository becomes available for client connections.
  • If the repository is set with the ADD or UPDATE FRPBATCH commands to AUTOOPEN=Y, or the repository was started with the OPEN=YES option in the START FRPBATCH command, the RS opens the repository, readying it for client function requests.
  • If the repository is not set to open either explicitly or automatically, the repository and RS catalog repository data sets are allocated when a client first connects to the repository.
STOPPING
The repository is in the process of being stopped.
Stopping a repository has the following results:
  • The repository can no longer accept new client connections.
  • If the repository data sets are allocated, the RS tries to close and deallocate them. The RS waits until all active client request threads are completed before closing and deallocating the data sets.
STOPPED
Stopped and closed. The RS does not accept client connections to the repository. The repository data sets are closed and deallocated.

The start and stop state of a repository is persistent. For example, a repository that is stopped remains stopped after the RS is restarted, regardless of the setting for the AUTOOPEN option. The AUTOOPEN option only determines when data sets are allocated and opened if the repository is started.