Creating and changing data set templates
Use the Create Data Set Template, Create
Like Data Set Template, or Data Set Template
Properties windows to build and manipulate
data set templates. Data set templates are
objects that define a data set naming convention,
DF/SMS parameters, and media parameters to
be applied to newly created data sets. Utilities
use data set templates to dynamically allocate
the data sets they require.
Using a data set template for naming data
sets helps you keep large numbers of data
sets organized by generating data set names
based on custom parameters defined in the
template. When using a utility you can specify
the name of a data set template instead of
creating the name for a new data set yourself
thus, making searching and identifying data
sets a simpler task.
Authorities and privileges

To create or update a data set template or
to update data set template properties:
- Open the Create Data Set Template window,
Create Like Data Set Template window,or the
Data Set Properties window.
- If a name is not already present in the Template name text field, type in a unique utility procedure
name.
- Specify the naming convention of the data
set template in the Data Set Name text field or click the
push button on the right of the field.
- The
push button opens the Change Data Set Name Template window to assist you with building a naming
convention.
- Specify the unit type in the Unit type text field. (OS/390 device or device type)
- Specify the number of buffers in the Number of buffers text field.
- Optional: Specify settings in the Disposition group.
Status:
- New - Specifies that a new data set is to
be created.
- Old - Specifies that the data set exists
and that the called utility requires exclusive
(unshared) use of the data set.
- Share - Specifies that the data set exists
and that other jobs can share it, or use
it at the same time as the utility.
- Modify - Specifies one of the following:
- The data set exists. Records are to be added
to the end of the data set.
- The data set must be sequential.
Normal Termination:
- Delete - Specifies that the data set is no
longer needed if the utility terminates normally.
- Keep - Specifies that the data set is to
be kept on the volume if the utility terminates
normally.
- Catalog - Specifies that, if the utility
terminates normally, the operating system
is to place an entry pointing to the data
set in the system or user catalog.
- Uncatalog - Specifies that, if the utility
terminates normally, the operating system
is to delete the entry pointing to the data
set in the system or user catalog and unneeded
indexes, except for the highest level entry.
Note: The data set is kept.
Abnormal Termination:
- Delete - Specifies that the data set's space
on the volume is to be released if the utility
terminates abnormally.
- Keep - Specifies that the data set is to
be kept on the volume if the utility terminates
abnormally.
- Catalog - Specifies that, if the utility
terminates abnormally, the operating system
is to place an entry pointing to the data
set in the system or user catalog.
- Uncatalog - Specifies that, if the utility
terminates abnormally, the operating system
is to delete the entry pointing to the data
set in the system or user catalog and unneeded
indexes, except for the highest level entry.
Note: The data set is kept.
- By default, settings on the Media page will be Media
Type Disk, Unit Allocation Cylinders, and Space Allocation DB2 Caculated. It is optional to adjust any of the settings
as necessary for different media types or
data sets previously saved under non-default
settings.
- Click the OK push button.
Related information