Changing the Capacity of a Data Set [ DBChange Plus User's Guide ] MPE/iX 5.0 Documentation
DBChange Plus User's Guide
Changing the Capacity of a Data Set
To change the capacity of a data set, use the CHANGE CAPACITY command.
When you change the capacity of a data set, the DBCPLUS program checks to
see if the new capacity is greater than or less than the high-water mark.
The high-water mark is the greatest number of entries the data set has
ever contained.
If the new capacity is greater than the high-water mark, the capacity is
changed as specified. If the new capacity is less than the high-water
mark, use the REPACK SET command to change the capacity. To learn more
about repacking data sets, refer to chapter 8, "Maintaining the
Database," or "REPACK SET" in chapter 10, "DBChange Plus Commands."
To automatically adjust data set capacities, use the CONTROL command with
the NEWFULL parameter. Refer to "CONTROL" in chapter 10, "DBChange Plus
Commands."
In this section, the capacity of the detail data set INVENTORY is
changed. Before changing the capacity, the REVIEW SETS command output
looks like this:
Set Blk Blk Dev
No. Data Set Name Type Capacity Fac Max Class Security
--------------------------------------------------------------
6 INVENTORY D 450 15 640 DISK2 (12,14/13,18)<---- *
*capacity to be changed
In the example below, the capacity of the detail data set INVENTORY is
changed from 450 to 510. The DBCPLUS program displays a message
confirming that the change of capacity is accepted.
>change capacity inventory 510
Change of set capacity, block factor, and/or device class accepted.
>
Refer to "CHANGE CAPACITY" in chapter 10, "DBChange Plus Commands," for a
detailed description of the command syntax and parameters.
NOTE The capacity must be a number that can be evenly divided by the
blocking factor. If you change the capacity to a number that
cannot be evenly divided by the blocking factor, DBSCHEMA (called
by the DBAPLUS program) adjusts the specified capacity to the
nearest multiple of the blocking factor. For example, if you
specify a capacity of 503, but the blocking factor is 15, the
capacity is automatically changed to 510, which can be evenly
divided by 15. Note, however, that if the REVIEW SETS or REVIEW
BLOCKS command is used before invoking the DBAPLUS program, the
specified capacity, rather than the actual adjusted capacity, is
displayed.
If you want to verify that the capacity of the data set INVENTORY is
changed, use the REVIEW SETS command as follows. You can see that the
capacity is now 510.
>review sets inventory
Fld Pth Entr Med Blk Blk Blk
Data Set Name Type Cnt Cnt Len Rec Capacity Fac Len Max
-----------------------------------------------------------------
INVENTORY D 7 4 24 40 510 15 601 640 <---- *
*capacity changed
MPE/iX 5.0 Documentation