The ADDDS control statement is used to create a new database, to add additional space to an existing database, or to add a new index file data set. Space is added by creating a new data set and formatting it with fixed-length blocks.
Database Extent Considerations
Note: The physical sequential data sets are accessible via standard utilities and ISPF. It is recommended that you use the CA View Systems Extension Data Set Security Feature to limit access to these data sets or implement encryption to secure the data.
To minimize contention, we recommend that each database extent be placed on a separate dedicated volume. Where possible, the size of the volume should match the size of the database extent. A matching database extent prevents I/O for multiple extents from queuing on the same device address.
Also, the first extent of the index and the database must be placed on separate dedicated volumes because the RESERVE processing uses the dataset name and volume of the first extent to serialize all accesses.
The high-level name of the database must have previously been defined with the NAME control statement (or the PARM parameter of the EXEC JCL statement).
Note: The allocation of a new index and/or data extent might not take effect immediately if archival tasks are active. (These archive tasks are SARSTC, FSS Collectors, or CA Deliver Direct-to-View.) Be aware of the following:
Syntax
ADDDS ABOVE BLKSIZE= CYLINDER= DATACLASS= INDEX|DATA MGMTCLAS= STORCLAS= UNIT= VOLSER=
Where:
Indicates that the data set being added to the database can be allocated above the 64K cylinder line on a 3390-A device. Data sets that are allocated above the 64K cylinder line are allocated in increments of 21 cylinders so the final data set allocation is rounded up to the next multiple of 21 cylinders. This parameter is optional.
Specifies the block size to be used in the data sets.
The minimum is 3476; the maximum is 32760. The default block size for the database index file data sets is 8906, and the default block size for the database data file data sets is 3768. The block size for an existing database cannot be changed, so this operand is only valid when you create a new database. After a database has been created, any subsequent use of the block size parameter is ignored.
Note: For more information about determining the block size to use, see Estimating DASD Requirements For a Database later in this chapter.
Specifies the number of contiguous cylinders to allocate to the data set. A maximum of 32,760 cylinders can be allocated to one data set.
Specifies the data class of an SMS dataset
Specifies whether an index file or a data file data set is to be added to the database. INDEX indicates the addition of an index file data set suffixed with Innnnnnnn. DATA indicates a data file data set suffixed with Dnnnnnnnn. Either INDEX or DATA is required.
Specifies the management class of an SMS data set
Specifies the storage class of an SMS data set
Specifies the unit name to be used to dynamically allocate a new data set
Specifies the volume serial number on which to allocate the new data set
All of the ADDDS keywords can be abbreviated to the fewest number of characters that makes them unique.
SMS and Non-SMS: Specifying Parameters
The following table summarizes the interdependency of the ADDDS parameters for SMS and non-SMS data sets:
|
Parameter |
Non-SMS Data Set |
SMS Data Set |
|---|---|---|
|
BLKSIZE |
Optional |
Optional |
|
CYLINDER |
Required |
Required |
|
DATACLAS |
Omit |
Optional |
|
MGMTCLAS |
Omit |
Optional |
|
STORCLAS |
Omit |
Optional |
|
UNIT |
Optional |
Omit |
|
VOLSER |
Optional |
Omit |
Estimating DASD Requirements for a Database
There is no way to know the exact amount of space that a database might require.
These formulas can be used to approximate the space needed (for this approximation, a block size of 3768 is used):
Procedure to Estimate Database Space
Using the previous information, you can use this procedure to approximate the amount of space required for your database.
Example
Assume that a site produces 1,000,000 lines of SYSOUT in one day to be archived on disk. The average line length of the SYSOUT is 121 bytes, and three days' worth of SYSOUT is going to be kept on disk.
Using the method described on the previous page, space requirements can be approximated as follows:
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|