Opening the IMSRSC repository
You can control when an IMSRSC repository is opened with the AUTOOPEN option for the ADD or UPDATE FRPBATCH commands, or with the OPEN option for the START FRPBATCH command.
- If the repository is set to AUTOOPEN=Y, its data sets are allocated and opened when it starts. If the repository was in the started state when the Repository Server (RS) last shut down, the data sets are allocated and opened when the RS is restarted.
- If the repository is set to AUTOOPEN=N and it is started with OPEN=YES, it is opened immediately.
- If the repository is set with AUTOOPEN= N and it is not started with OPEN=YES, it is opened at the time of the first client connection.
The RS performs basic validation of IMSRSC repository data sets at open time. A repository cannot be opened unless there is both a valid COPY1 and COPY2 of the IMSRSC repository data set.
If there is one valid copy and a valid SPARE IMSRSC repository data set, automated SPARE recovery occurs. In the SPARE recovery process, the SPARE IMSRSC repository data set is reassigned to take the place of the missing COPY1 or COPY2, and its data sets are populated from the valid copy.
- The available IMSRSC repository data sets are allocated and open.
- Empty data sets are identified.
- All data sets have valid characteristics for their identified function as either a repository member data set (RMD) or repository index data set (RID).
- Populated data sets (with resource definitions) are considered to be valid repository data sets.
- The repository's set of data sets is known to be consistent.
If any data set fails to meet these basic requirements, an error message is issued and the repository open process terminates.
During repository open processing, either with the AUTOOPEN option or during the first access, all of the repository data sets are opened using VSAM local shared resources (LSR). As the data sets are opened using VSAM LSR, if the repository data sets are empty, informational messages are issued that indicate that the data sets are empty. An informational messages received for the spare data set pair requires no user action. The spare data set is opened to ensure that it is empty, so that there are no errors during SPARE recovery process.
The RS closes the IMSRSC repository data sets when the repository is stopped, during the SPARE recovery process and during RS shutdown.