Online/Defrag function with the PSB keyword
The PSB keyword is required.
When you execute Online/Defrag, the Online/Defrag job uses a BMP to coordinate the reorganization. The PSB keyword names the PSB to be used for the BMP subtask. Online/Defrag validates the PSB and ensures that it is sensitive to all segments of the database and complies with the required Online/Defrag structure.
The PSB must be defined in the IMS definition used by the online control region in which the Online/Defrag job runs. Two PCBs are required for each DBD. Both PCBs must be sensitive to all segments, and both PCBs must be named. PROCOPT=A is required. The PSBs must have the structure shown in Required PSB structure.
PCB TYPE=DB,NAME=dbname,PROCOPT=A,PCBNAME=anyname1,LIST=YES
SENSEG NAME=rootseg
SENSEG NAME=depseg1
.
. (all segments)
.
PCB TYPE=DB,NAME=dbname,PROCOPT=A,PCBNAME=anyname2,LIST=YES
SENSEG NAME=rootseg
SENSEG NAME=depseg1
.
. (all segments)
.
PSBGEN PSBNAME=psbname,LANG=COBOL,CMPAT=Y
END
SENSEG NAME=rootseg
SENSEG NAME=depseg1
.
. (all segments)
.
PCB TYPE=DB,NAME=dbname,PROCOPT=A,PCBNAME=anyname2,LIST=YES
SENSEG NAME=rootseg
SENSEG NAME=depseg1
.
. (all segments)
.
PSBGEN PSBNAME=psbname,LANG=COBOL,CMPAT=Y
END
Related topic
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*