Reorganization and repair of an ICF catalog while open and in-use in a digital data storage system
First Claim
1. A computer-implemented method of reorganizing an ICF catalog comprising a key sequential data set (KSDS) BCS in a VSAM system while the catalog is open, the BCS comprising a data component and an index component, and the reorganization method comprising the steps of:
- (a) stabilizing the catalog and opening it with exclusive control;
(b) creating a backup of the index component;
(c) using the sequence set records of the index component, constructing a logical CI correlation table, the table indicating, for each data CI in the data set, the physical location of the CI in the data component and the logical location of the CI in key sequence;
(d) using the logical CI correlation table, reading data CIs from the data component out to an internal backup data set in potential logical key sequence order so as to form an ordered backup of the data without sorting;
(e) clearing all data CI'"'"'s in the data component and clearing the index component;
(f) updating the BCS VSAM control blocks so as to reflect an empty BCS;
(g) reloading the data set from the ordered backup, sorting of records if necessary, and using standard VSAM I/O to reload the data records and reconstruct the index; and
(h) closing the catalog to update VVRs in the VVDS and re-sync it with CAS.
14 Assignments
0 Petitions
Accused Products
Abstract
MVS mainframe computer systems employ the ICF (Integrated Catalog Facility) catalog environment to manage numerous data sets. To provide 24×7 availability of those data sets, the BCS (250,270) must be re-organized while leaving the catalog open to access by applications. To perform a re-org while open, a data CI correlation table (500) is constructed (314) and used to lay the data CIs into a backup file in logical order (316), so that they can be loaded into the new BCS (324) without sorting, thereby reducing downtime. Additionally, if the BCS is damaged during normal operation, repair of the structure must also be performed to ensure that correct access is maintained to all data that is cataloged in the BCS. Throughout the re-org process, structural integrity checks are performed on the data and index component of the BCS, and if errors are encountered, they can be repaired.
58 Citations
17 Claims
-
1. A computer-implemented method of reorganizing an ICF catalog comprising a key sequential data set (KSDS) BCS in a VSAM system while the catalog is open, the BCS comprising a data component and an index component, and the reorganization method comprising the steps of:
-
(a) stabilizing the catalog and opening it with exclusive control;
(b) creating a backup of the index component;
(c) using the sequence set records of the index component, constructing a logical CI correlation table, the table indicating, for each data CI in the data set, the physical location of the CI in the data component and the logical location of the CI in key sequence;
(d) using the logical CI correlation table, reading data CIs from the data component out to an internal backup data set in potential logical key sequence order so as to form an ordered backup of the data without sorting;
(e) clearing all data CI'"'"'s in the data component and clearing the index component;
(f) updating the BCS VSAM control blocks so as to reflect an empty BCS;
(g) reloading the data set from the ordered backup, sorting of records if necessary, and using standard VSAM I/O to reload the data records and reconstruct the index; and
(h) closing the catalog to update VVRs in the VVDS and re-sync it with CAS. - View Dependent Claims (2, 3, 4, 5, 6)
-
- 7. A data structure for storing a correlation between the logical keys of a BCS data set and the respective physical locations of the data set, for use in reorganizing the BCS while open.
-
8. A table for storing a correlation between the logical order of the data CIs of a BCS data set and the physical location of the data CIs, for use in reorganizing the BCS while open.
-
10. A logical CI correlation table for use in re-organizing or restoring an ICF catalog in a VSAM storage environment, the correlation table comprising:
a series of entries, each entry corresponding to a physical CI number in the BCS data component; and
each entry including a first pointer to a CI containing lower keys and a second pointer to a CI containing higher keys, so that the table contents together form a logical [key sequential linked] list of the CIs.
-
11. A correlation table for use in re-organizing an ICF catalog in a VSAM storage environment, the correlation table comprising:
a series of entries, each entry corresponding to one of the data CI'"'"'s in the catalog, and wherein each entry in the table comprises a forward pointer to support reading the data records in key sequence. - View Dependent Claims (12, 13, 14, 15, 16)
-
17. A method of stabilizing a an ICF catalog in a VSAM system preparatory to re-organizing the catalog, the method comprising the steps of:
-
(a) issuing an instruction to obtain a first timestamp;
(b) reading the BCS VVR records to obtain the latest BCS refresh timestamp;
(c) opening the BCS with a standard VSAM OPEN macro;
(d) issuing a RESERVE macro for the SYSIGGV2 resource name, to obtain exclusive control;
(e) obtaining the VVRs for the data and index components of the BCS from the VVDS on the volume where the BCS resides;
(f) comparing the first timestamp to the latest BCS refresh timestamp stored in the BCS'"'"'s data component VVR; and
(g) if the latest BCS refresh timestamp is greater, repeating the foregoing steps (a) through (f), inclusive, until the latest BCS refresh timestamp is equal or less than the timestamp obtained prior to the latest iteration of the step (c) opening process. (h) alternatively to steps (e)-(g) to stabilize the BCS environment, the embodiment may use the VERIFY macro with the REFRESH option.
-
Specification