DBRC authorization
Before any DBRC authorization, the Reorg function checks all data set names for logical errors.
Three sources of data set names are available: the data set names registered to DBRC, the input data set names in the JCL, and the output data set names in the JCL. Table 1 shows the possible combinations.
Table 1. Valid data set name combinations for authorization
Data set names and DBRC registration | Reorg function keyword |
---|---|
| SHARE(YES) |
| SHARE(NO) |
| SHARE(NO) and SWAP(x,IC) |
All output data set names are registered to DBRC. | SHARE(NO) and INPUT(UNLDFILE) |
The Reorg function also checks the status of the database. If the status is BACKOUT NEEDED or RECOV NEEDED, reorganization is not allowed.
If an error occurs during the data set name swapping process, the Reorg function sets the DBRC NOAUTH flag.