SMP/E for z/OS User's Guide
Previous topic | Next topic | Contents | Index | Contact z/OS | Library | PDF


Reorganizing a CSI data set to reclaim space

SMP/E for z/OS User's Guide
SA23-2277-01

During normal SMP/E processing, VSAM control interval splits and control area splits can occur. These splits use up some of the free space in each control interval or control area, and this can degrade SMP/E performance and DASD space utilization. You should monitor your VSAM data sets regularly to determine how many splits have occurred and how much free space remains. The following job lists the catalog entry for data set SMPE.SMPCSI.CSI:
//LISTCAT  JOB    'accounting info',MSGLEVEL=(1,1)
//STEP01   EXEC   PGM=IDCAMS
//SYSPRINT DD     SYSOUT=A
//SYSIN    DD     *
  LISTCAT                         -
         ENTRIES(SMPE.SMPCSI.CSI) -
         ALL
/*
After examining the LISTCAT output, you may determine that the CSI should be reorganized to eliminate splits in the control intervals or control areas and to reset the amount of free space available. This can be done through the access method services EXPORT and IMPORT commands. Once a CSI has been exported, a new CSI can be allocated, and the exported CSI can be imported so that normal SMP/E processing can continue.
Note: These examples are not the only way of compressing the CSI. You may prefer to use another method, drawing on your experience and knowledge of VSAM.
The following is a sample job for exporting the CSI:
//EXPORT   JOB    'accounting info',MSGLEVEL=(1,1)
//STEP01   EXEC   PGM=IDCAMS
//SMPCSI   DD     DSN=SMPE.SMPCSI.CSI,DISP=OLD
//TEMPCSI  DD     DSN=SMPCSI.DATA,DISP=OLD
//SYSPRINT DD     SYSOUT=A
//SYSIN    DD     *
  EXPORT SMPE.SMPCSI.CSI  -
         INFILE(SMPCSI)   -
         OUTFILE(TEMPCSI)
/*
The following is a sample job for importing the CSI:
//IMPORT   JOB    'accounting info',MSGLEVEL=(1,1)
//STEP01   EXEC   PGM=IDCAMS
//SMPCSI   DD     DSN=SMPE.SMPCSI.CSI,DISP=OLD
//TEMPCSI  DD     DSN=SMPCSI.DATA,DISP=OLD
//SYSPRINT DD     SYSOUT=A
//SYSIN    DD     *
  IMPORT  INFILE(TEMPCSI)  -
          OUTFILE(SMPCSI)  -
          INTOEMPTY
/*
Note:
  1. If you want to delete the original CSI (SMPE.SMPCSI.CSI) when the exported copy (SMPCSI.DATA) is created, do not use the IDCAMS TEMPORARY keyword on the EXPORT command.

    If you want to make a backup copy of the CSI, you can use the TEMPORARY keyword on the EXPORT command to keep the original CSI intact.

  2. Use a sequential data set to receive the exported CSI.
  3. After allocating a new CSI to be imported into, do not prime it with the GIMZPOOL record provided in SYS1.MACLIB; if you do, the import operation will fail.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014