Previous Topic: More InformationNext Topic: Usage


CREATE DSMODEL

The CREATE DSMODEL utility defines a temporary model of data set attributes to use for dynamic file allocation in conjunction with the REORG utility.

Authorization

None.

CREATE DSMODEL Syntax

►►─CREATE DSMODEL ─ model-name┬────────────────────────┬dataset-attribute-spec─►◄
                              └FROM existing-model-name┘

Expansion of dataset-attribute-spec

    ┌────────────────────────────────────────────────────────────┐
►►──▼──┬─ DSN ─ dsn-expression ────────────────────────────────┬─┴─────────────►◄
       ├─ UNIT ─ unit-name ────────────────────────────────────┤
       ├─ VOLSER ─┬ volser ──────────┬─────────────────────────┤
       │          │   ┌───, ─────┐   │                         │
       │          └ (─▼─ volser ─┴─) ┘                         │
       ├─ VOLCNT ─ volume-count ───────────────────────────────┤
       ├─ SPACE ┬ CYL ◄────┬─┬──────────────────────────────┬──┤
       │        ├ TRK ─────┤ └ ( primary ┬──────────────┬ ) ┘  │
       │        └ blksize ─┘             └ , secondary ─┘      │
       ├─ BLKSIZE ─ block-size ────────────────────────────────┤
       ├─ BUFNO ─ number-of-buffers ───────────────────────────┤
       ├─ DATACLAS ─ data-class ───────────────────────────────┤
       ├─ MGMTCLAS ─ management-class ─────────────────────────┤
       ├─ STORCLAS ─ storage-class ────────────────────────────┤
       └─ DSNTYPE ─ dataset-type ──────────────────────────────┘

Expansion of dsn-expression

►►── ' ┬────────────────┬─┬─ character-string ─┬─ ' ───────────────────────────►◄
       │ ┌─────. ─────┐ │ └─ dsn-variable ─────┘
       └─▼─ dsn-term ─┴─┘

Expansion of dsn-term

►►──┬─ character-string ─┬────────────────────┬────────────────────────────────►◄
    │                    └─ dsn-variable ─────┤
    └─ dsn-variable ──────────────────────────┘

Expansion of dsn-variable

►►── dsn-variable-name ─┬────────────────────────────┬─────────────────────────►◄
                        └─ ( start ┬────────────┬ ) ─┘
                                   └─ , length ─┘

Expansion of dsn-variable-name

►►── &DD. ─────────────────────────────────────────────────────────────────────►◄

CREATE DSMODEL Parameter

model-name

Specifies the name of the data set model being created. Model-name must be 1 to 18 characters. If the last non-blank character of model-name is an asterisk (*), it matches any search string whose value begins with the character string to the left of the asterisk in the model name. A model name consisting of a single asterisk matches all search keys.

existing-model-name

Specifies the name of an existing data set model whose attributes are to be copied to the model being created.

dataset-attribute-spec

Specifies attributes of the data set model.

dsn-expression

Specifies an expression used to construct data set names.

unit-name

Specifies the unit type on which the file resides or will reside.

volser

Specifies the name of a volume on which the file resides or will reside.

volume-count

Specifies the maximum number of volumes on which the file can reside. The default is the operating system default.

CYL/TRK/blksize

Specifies the allocation unit for a disk data set. CYL allocates the file in units of cylinders. TRK allocates the file in units of tracks. Blksize allocates the file in units whose size is blksize.

primary

Specifies the number of units in the primary allocation for a disk file.

secondary

Specifies the number of units in the secondary allocation for a disk file.

block-size

Specifies the blocksize to be used in creating (and accessing) a new file.

number-of-buffers

Specifies the number of buffers to be used in accessing a file.

data-class, management-class, storage-class, dataset-type

Specifies a data set's SMS data class, management class, storage class, and dataset type respectively.

dsn-variable-name

Specifies the name of a symbolic variable whose value can be used in whole or in part as a substitution parameter in the construction of a data set name.

&DD.

Specifies the DDNAME (linkname) through which the data set is referenced.

start

Specifies the position of the first character in the value of the symbolic variable that is to be used in the construction of the data set name. Start must not identify a position beyond the last non-blank character in the value.

length

Specifies the number of characters in the value of the symbolic variable that are to be used in the construction of the data set name. If not specified, length defaults to the number of non-blank characters from the start character to the end of the value. Trailing blank characters are truncated.