You can change the size of a catalog if the catalog is much larger than necessary, or if it has grown into excessive secondary extents. Before changing the size of a catalog, consider merging small catalogs or splitting large catalogs.
Bạn đang xem: size bcs
When you change the size of a catalog, the catalog is also reorganized.
If you are decreasing the size of the catalog, you must be certain to define the new catalog with enough space to tướng contain all the entries in the existing catalog. The catalog must also trương mục for the free space defined for the catalog.
Before changing any catalog always:
- Ensure you have a good backup of a valid catalog. Using IDCAMS DIAGNOSE and EXAMINE on the catalog and correcting any errors before taking the backup will ensure you can fall back to tướng a valid backup if there are problems. Having more than thở one copy is always a good idea in case one copy becomes damaged or lost. This backup can be a full volume dump of the volume the catalog is on, a DFDSS backup or IDCAMS EXPORT. Having all three gives you more options if you need to back out of the catalog changes.
- Use IDCAMS DIAGNOSE and EXAMINE to tướng ensure that the catalog does not have errors.
- Consider using IDCAMS LISTCAT ALL on the catalog to tướng be changed, in case there are problems. Because this may produce a large volume of output you may wish to tướng redirect the output to tướng a data phối, either by pointing the SYSPRINT DD statement to tướng a data phối or by using the OFILE keywords on the LISTCAT command.
- If you are changing a catalog that is shared across systems, a LISTCAT of the master catalog with the ALL keywords is needed to tướng enable a redefine of any aliases that point to tướng the user catalog that is being changed, unless you already have a job phối up to tướng define the aliases. If you already have a job, verify that it is current by comparing the LISTCAT output to tướng the job.
- Quiesce all activity against the catalog that is to tướng be changed.
Run the following commands as the first part of the change process and, if there are errors, make the required corrections before proceeding with changing the catalog.
//DIAGNOSE EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//DIAGDD DD DISP=SHR,DSN=your.user.catalog
//SYSIN DD *
DIAGNOSE ICFCATALOG INFILE(DIAGDD)
//EXAMINE1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
EXAMINE NAME(your.user.catalog) -
INDEXTEST NODATATEST ERRORLIMIT(1000)
//EXAMINE2 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
EXAMINE NAME(your.user.catalog) -
NOINDEXTEST DATATEST ERRORLIMIT(1000)
//LISTCAT EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
LISTCAT CAT(your.user.catalog) ALL
The following steps show how to change the size of a catalog. The catalog used in the example is called ICFCAT.USER.VSYS303.
- Lock the catalog.
Xem thêm: utc là trường gì
//LOCKCAT EXEC PGM=IDCAMS //SYSPRINT DD SYSOUT=A //SYSIN DD * ALTER ICFCAT.USER.VSYS303 LOCK /*
- Issue the following command on each system that shares the catalog:
F CATALOG,NOVLF(ICFCAT.USER.VSYS303)
- If the catalog is shared with other systems and those other systems
do not all share the same master catalog, then EXPORT DISCONNECT the
catalog on all other systems other than thở the system you are running
the jobs to tướng resize the catalog on.
//EXPDISC EXEC PGM=IDCAMS //SYSPRINT DD SYSOUT=* //SYSIN DD * EXPORT ICFCAT.USER.VSYS303 DISCONNECT
- Export the BCS with the EXPORT command. The aliases of the catalog
are saved with the exported copy, and can be used in later steps to
redefine the aliases. You must create a sequential
data phối for the catalog export, if one does not already exist.
//EXPORT EXEC PGM=IDCAMS //SYSPRINT DD SYSOUT=A //EXPDD DD DSN=CATBACK.ICFCAT.USER.VSYS303,DISP=OLD //SYSIN DD * EXPORT ICFCAT.USER.VSYS303 - OUTFILE(EXPDD) - TEMPORARY /*
- Delete the BCS with the RECOVERY option.
//DELCAT EXEC PGM=IDCAMS //SYSPRINT DD SYSOUT=A //SYSIN DD * DELETE ICFCAT.USER.VSYS303 - RECOVERY - USERCATALOG /*
- Redefine the BCS with the desired space and performance attributes.
//DFNEWCAT EXEC PGM=IDCAMS //SYSPRINT DD SYSOUT=A //SYSIN DD * DEFINE USERCATALOG - (NAME(ICFCAT.USER.VSYS303) - VOLUME(SYS303) - MEGABYTES(15 5) - ICFCATALOG - LOCK - FREESPACE(20 20) - STRNO(3) - ) - DATA( CONTROLINTERVALSIZE(4096) - BUFND(4) ) - INDEX( CONTROLINTERVALSIZE(4096) - BUFNI(4) ) /*
- Import the BCS using the IMPORT command. Specify INTOEMPTY on
the IMPORT command.
Also, specify ALIAS, sánh that the aliases exported with the catalog are redefined.
//IMPORT EXEC PGM=IDCAMS //SYSPRINT DD SYSOUT=A //SYSIN DD * IMPORT INDATASET(CATBACK.ICFCAT.USER.VSYS303) - OUTDATASET(ICFCAT.USER.VSYS303) - ALIAS - LOCK - INTOEMPTY /*
- If the catalog is shared with other systems that tự not share
the same master catalog then you will need to tướng IMPORT CONNECT on all
other systems that share the catalog.
//IMPRTCON EXEC PGM=IDCAMS //SYSPRINT DD SYSOUT=* //SYSIN DD * IMPORT CONNECT - OBJECTS((ICFCAT.USER.VSYS303) - DEVICETYPE(3390) - VOLUMES(SYS303)))
- If the catalog is shared with other systems that tự not share the same master catalog then you will need to tướng define the aliases for that catalog on the other systems that tự not share the same master catalog.
- Run the following commands and, if there are any errors, make
the required corrections before unlocking the catalog.
//DIAGNOSE EXEC PGM=IDCAMS //SYSPRINT DD SYSOUT=* //DIAGDD DD DISP=SHR,DSN=your.user.catalog //SYSIN DD * DIAGNOSE ICFCATALOG INFILE(DIAGDD) //EXAMINE1 EXEC PGM=IDCAMS //SYSPRINT DD SYSOUT=* //SYSIN DD * EXAMINE NAME(your.user.catalog) - INDEXTEST NODATATEST ERRORLIMIT(1000) //EXAMINE2 EXEC PGM=IDCAMS //SYSPRINT DD SYSOUT=* //SYSIN DD * EXAMINE NAME(your.user.catalog) - NOINDEXTEST DATATEST ERRORLIMIT(1000) //LISTCAT EXEC PGM=IDCAMS //SYSPRINT DD SYSOUT=* //SYSIN DD * LISTCAT CAT(your.user.catalog) ALL .
- If there were no errors in the previous step , you can now unlock
the catalog:
Xem thêm: phim tình yêu anh dành cho em
//LOCKCAT EXEC PGM=IDCAMS //SYSPRINT DD SYSOUT=A //SYSIN DD * ALTER ICFCAT.USER.VSYS303 UNLOCK /*
Bình luận