Manual Vsam
Manual Vsam
Examples of how each command is used are provided at the end of each
command.
Subtopics
3.1 Functional Command Syntax Summary
3.2 ALTER
3.3 BLDINDEX
3.4 CNVTCAT
3.5 DEFINE ALIAS
3.6 DEFINE ALTERNATEINDEX
3.7 DEFINE CLUSTER
3.8 DEFINE GENERATIONDATAGROUP
3.9 DEFINE NONVSAM
3.10 DEFINE PAGESPACE
3.11 DEFINE PATH
3.12 DEFINE SPACE
3.13 DEFINE USERCATALOG
3.14 DELETE
3.15 EXAMINE
3.16 EXPORT
3.17 EXPORT DISCONNECT
3.18 EXPORTRA
3.19 IMPORT
3.20 IMPORT CONNECT
3.21 IMPORTRA
3.22 LISTCAT
3.23 LISTCRA
3.24 PRINT
3.25 REPRO
3.26 RESETCAT
3.27 VERIFY
ALTER is used to alter attributes of data sets and catalogs that have
already been defined.
DELETE deletes catalogs, VSAM data sets, and non-VSAM data sets.
IMPORTRA reconstructs multiple VSAM data sets from a data set created
PRINT is used to print VSAM data sets, non-VSAM data sets, and
catalogs.
REPRO copies VSAM and non-VSAM data sets, copies catalogs, unloads and
reloads VSAM catalogs.
3.2 ALTER
+------------------------------------------------------------------------+
¦ ALTER ¦ entryname[/password] ¦
¦ ¦ [ADDVOLUMES(volser[ volser...])] ¦
¦ ¦ [ATTEMPTS(number)] ¦
¦ ¦ [AUTHORIZATION(entrypoint[ string])] ¦
¦ ¦ [BUFFERSPACE(size)] ¦
¦ ¦ [CODE(code)] ¦
¦ ¦ [CONTROLPW(password)] ¦
¦ ¦ [EMPTY|NOEMPTY] ¦
¦ ¦ [ERASE|NOERASE] ¦
¦ ¦ [EXCEPTIONEXIT(entrypoint)] ¦
¦ ¦ [FILE(ddname)] ¦
¦ ¦ [FREESPACE(CI-percent[ CA-percent])] ¦
¦ ¦ [INHIBIT|UNINHIBIT] ¦
¦ ¦ [KEYS(length offset)] ¦
¦ ¦ [MASTERPW(password)] ¦
¦ ¦ [NEWNAME(newname)] ¦
¦ ¦ [NULLIFY( ¦
¦ ¦ [AUTHORIZATION(MODULE|STRING)] ¦
¦ ¦ [CODE] ¦
¦ ¦ [CONTROLPW] ¦
¦ ¦ [EXCEPTIONEXIT] ¦
¦ ¦ [MASTERPW] ¦
¦ ¦ [OWNER] ¦
¦ ¦ [READPW] ¦
¦ ¦ [RETENTION] ¦
¦ ¦ [UPDATEPW])] ¦
¦ ¦ [OWNER(ownerid)] ¦
¦ ¦ [READPW(password)] ¦
¦ ¦ [RECORDSIZE(average maximum)] ¦
¦ ¦ [REMOVEVOLUMES(volser[ volser...])] ¦
¦ ¦ [SCRATCH|NOSCRATCH] ¦
¦ ¦ [SHAREOPTIONS(crossregion[ crosssystem])] ¦
¦ ¦ [TO(date)|FOR(days)] ¦
¦ ¦ [UNIQUEKEY|NONUNIQUEKEY] ¦
¦ ¦ [UPDATE|NOUPDATE] ¦
¦ ¦ [UPDATEPW(password)] ¦
¦ ¦ [UPGRADE|NOUPGRADE] ¦
¦ ¦ [WRITECHECK|NOWRITECHECK] ¦
¦ ¦ ¦
¦ ¦ [CATALOG(catname[/password])] ¦
+------------------------------------------------------------------------+
Subtopics
3.2.1 Entry Types That Can Be Altered
3.2.2 ALTER Parameters
3.2.3 ALTER Examples
An "X" in Figure 2 indicates you can alter the value or attribute for the
type of catalog entry specified. KEYS and RECORDSIZE, when specified for
a cluster or alternate index, apply to its data component entry only, and
not to the cluster or alternate index entry. Some attributes can be
specified only for the cluster's or alternate index's data or index
component entry--you must identify the component with its entryname. You
can use the LISTCAT command to determine the names generated for the
object's components.
When you identify a group of entries with a generic name, entries whose
entrynames match the supplied qualifiers are altered if they contain the
type of information specified with the ALTER command's other parameters.
+-----------------------------------------------------------------------------------
---------------------------------------------+
¦ Figure 2. ALTER Parameters and the Entry Types to Which Each Applies
¦
+-----------------------------------------------------------------------------------
---------------------------------------------¦
¦ Attributes that can be altered ¦ Type of Catalog Entry
¦
¦
+-----------------------------------------------------------------------------------
------------¦
¦ ¦ ALTER-¦ AIX ¦ AIX ¦ CLUSTER¦ CLUSTER¦
CLUSTER¦ PAGESPACE¦ PATH¦ USERCATALOG¦ NON VSAM ¦ GDG ¦
¦ ¦ NATE ¦ DATA ¦ INDEX¦ ¦ DATA ¦ INDEX
¦ ¦ ¦ ¦ ¦ ¦
¦ ¦ INDEX ¦ ¦ ¦ ¦ ¦
¦ ¦ ¦ ¦ ¦ ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ ADDVOLUME ¦ ¦ X ¦ X ¦ ¦ X ¦ X
¦ ¦ ¦ ¦ ¦ ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ ATTEMPTS ¦ X ¦ X ¦ X ¦ X ¦ X ¦ X
¦ X ¦ X ¦ X ¦ ¦ ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ AUTHORIZATION ¦ X ¦ X ¦ X ¦ X ¦ X ¦ X
¦ X ¦ X ¦ X ¦ ¦ ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ BIND ¦ ¦ X ¦ X ¦ ¦ X ¦ X
¦ ¦ ¦ ¦ ¦ ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ BUFFERSPACE ¦ ¦ X ¦ ¦ ¦ X ¦
¦ ¦ ¦ X ¦ ¦ ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ CODE ¦ X ¦ X ¦ X ¦ X ¦ X ¦ X
¦ X ¦ X ¦ X ¦ ¦ ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ CONTROLPW ¦ X ¦ X ¦ X ¦ X ¦ X ¦ X
¦ X ¦ X ¦ X ¦ ¦ ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ CYLINDERFAULT ¦ ¦ X ¦ X ¦ ¦ X ¦ X
¦ ¦ ¦ ¦ ¦ ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ DESTAGEWAIT ¦ ¦ X ¦ X ¦ ¦ X ¦ X
¦ ¦ ¦ ¦ ¦ ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ EMPTY ¦ ¦ ¦ ¦ ¦ ¦
¦ ¦ ¦ ¦ ¦ X ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ ERASE ¦ ¦ X ¦ ¦ ¦ X ¦
¦ ¦ ¦ ¦ ¦ ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ EXCEPTIONEXIT ¦ ¦ X ¦ X ¦ ¦ X ¦ X
¦ ¦ ¦ ¦ ¦ ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ FOR ¦ X ¦ ¦ ¦ X ¦ ¦
¦ ¦ X ¦ X ¦ X ¦ X ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ FREEESPACE ¦ ¦ X ¦ ¦ ¦ X ¦
¦ ¦ ¦ ¦ ¦ ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ INHIBIT ¦ ¦ X ¦ X ¦ ¦ X ¦ X
¦ ¦ ¦ ¦ ¦ ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ KEYS ¦ X ¦ X ¦ ¦ X ¦ X ¦
¦ ¦ ¦ ¦ ¦ ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ MASTERPW ¦ X ¦ X ¦ X ¦ X ¦ X ¦ X
¦ X ¦ X ¦ X ¦ ¦ ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ NEWNAME ¦ X ¦ X ¦ X ¦ X ¦ X ¦ X
¦ X ¦ X ¦ ¦ X ¦ ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ NODESTAGEWAIT ¦ ¦ X ¦ X ¦ ¦ X ¦ X
¦ ¦ ¦ ¦ ¦ ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ NOEMPTY ¦ ¦ ¦ ¦ ¦ ¦
¦ ¦ ¦ ¦ ¦ X ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ NOERASE ¦ ¦ X ¦ ¦ ¦ X ¦
¦ ¦ ¦ ¦ ¦ ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ NONUNIQUEKEY ¦ ¦ X ¦ ¦ ¦ ¦
¦ ¦ ¦ ¦ ¦ ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ NOSCRATCH ¦ ¦ ¦ ¦ ¦ ¦
¦ ¦ ¦ ¦ ¦ X ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ NOUPDATE ¦ ¦ ¦ ¦ ¦ ¦
¦ ¦ X ¦ ¦ ¦ ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ NOUPGRADE ¦ X ¦ ¦ ¦ ¦ ¦
¦ ¦ ¦ ¦ ¦ ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ NOWRITECHECK ¦ ¦ X ¦ X ¦ ¦ X ¦ X
¦ ¦ ¦ ¦ ¦ ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ NULLIFY ¦ X ¦ X ¦ X ¦ X ¦ X ¦ X
¦ X ¦ X ¦ X ¦ X ¦ X ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ AUTHORIZATION ¦ X ¦ X ¦ X ¦ X ¦ X ¦ X
¦ X ¦ X ¦ X ¦ ¦ ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ CODE ¦ X ¦ X ¦ X ¦ X ¦ X ¦ X
¦ X ¦ X ¦ X ¦ ¦ ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ CONTROLPW ¦ X ¦ X ¦ X ¦ X ¦ X ¦ X
¦ X ¦ X ¦ X ¦ ¦ ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ EXCEPTIONEXIT ¦ ¦ X ¦ X ¦ ¦ X ¦ X
¦ ¦ ¦ ¦ ¦ ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ MASTERPW ¦ X ¦ X ¦ X ¦ X ¦ X ¦ X
¦ X ¦ X ¦ X ¦ ¦ ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ OWNER ¦ X ¦ X ¦ X ¦ X ¦ X ¦ X
¦ X ¦ X ¦ X ¦ X ¦ X ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ READPW ¦ X ¦ X ¦ X ¦ X ¦ X ¦ X
¦ X ¦ X ¦ X ¦ ¦ ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ RETENTION ¦ X ¦ ¦ ¦ X ¦ ¦
¦ X ¦ X ¦ X ¦ X ¦ X ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ UPDATEPW ¦ X ¦ X ¦ X ¦ X ¦ X ¦ X
¦ X ¦ X ¦ X ¦ ¦ ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ OAM (1) ¦ ¦ ¦ ¦ ¦ ¦
¦ ¦ ¦ ¦ ¦ ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ OWNER ¦ X ¦ X ¦ X ¦ X ¦ X ¦ X
¦ X ¦ X ¦ X ¦ X ¦ X ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ READPW ¦ X ¦ X ¦ X ¦ X ¦ X ¦ X
¦ X ¦ X ¦ X ¦ ¦ ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ RECORDSIZE ¦ X ¦ X ¦ ¦ X ¦ X ¦
¦ ¦ ¦ ¦ ¦ ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ REMOVEVOLUMES ¦ ¦ X ¦ X ¦ ¦ X ¦ X
¦ ¦ ¦ ¦ ¦ ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ SCRATCH ¦ ¦ ¦ ¦ ¦ ¦
¦ ¦ ¦ ¦ ¦ X ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ SHAREOPTIONS ¦ ¦ X ¦ X ¦ ¦ X ¦ X
¦ ¦ ¦ ¦ ¦ ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ TO ¦ X ¦ ¦ ¦ X ¦ ¦
¦ X ¦ X ¦ X ¦ X ¦ X ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ UNINHIBIT ¦ ¦ X ¦ X ¦ ¦ X ¦ X
¦ ¦ ¦ ¦ ¦ ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ UNIQUEKEY ¦ ¦ X ¦ ¦ ¦ ¦
¦ ¦ ¦ ¦ ¦ ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ UPDATE ¦ ¦ ¦ ¦ ¦ ¦
¦ ¦ X ¦ ¦ ¦ ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ UNDATEPW ¦ X ¦ X ¦ X ¦ X ¦ X ¦ X
¦ X ¦ X ¦ X ¦ ¦ ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ UPGRADE ¦ X ¦ ¦ ¦ ¦ ¦
¦ ¦ ¦ ¦ ¦ ¦
+--------------------------------+-------+------+------+--------+--------
+--------+----------+-----+------------+----------+-----¦
¦ WRITECHECK ¦ ¦ X ¦ X ¦ ¦ X ¦ X
¦ ¦ ¦ ¦ ¦ ¦
+-----------------------------------------------------------------------------------
---------------------------------------------¦
¦
¦
¦ 1. Alter commands cannot be run against OAM data sets.
¦
¦
¦
¦
¦
+-----------------------------------------------------------------------------------
---------------------------------------------+
© Copyright IBM Corp. 1973, 1994
3.2.1 - 3
DFSMS/MVS V1R2 Access Method Services for VSAM
ALTER Parameters
Subtopics
3.2.2.1 Required Parameters
3.2.2.2 Optional Parameters
entryname[/password]
names the entry to be altered and supplies a password.
For example, when you specify PAYROLL.*, the entries that are altered
have names that contain two qualifiers, the first of which is PAYROLL.
When you specify PAYROLL.*.MAY, the entries that are altered are the
entry names that contain three qualifiers, of which the first is
PAYROLL and the third and last is MAY.
You must identify all qualifiers in the qualified name. For example,
PAYROLL.* cannot be used to identify a qualified name that contains
three or more qualifiers, even if its first qualifier is PAYROLL.
Similarly, PAYROLL.81.MAY.* cannot be used to identify a qualified
name that has more or fewer than four qualifiers.
A.B.$1.D C.$1.DATA
A.B.$2.D C.$2.DATA
A.B.$3.D C.$3.DATA
password
specifies the password of the entry or catalog to be altered.
Use the master password for the entry or for the catalog that
contains the entry for an alternate index, cluster, page space,
path, user catalog, data, or index. Alter RACF authority for an
entry or for the catalog is required.
ADDVOLUMES(volser[volser])
specifies volumes to be added to the list of candidate volumes. The
volumes to be added as candidate volumes must already be owned by the
catalog that contains the entry being altered. (Space must have been
defined on a volume to be added or the volume must have been
identified as a candidate volume.)
Abbreviation: AVOL
ATTEMPTS(number)
specifies the maximum number of times the operator can try to enter a
correct password in response to a prompting message. This parameter
only has effect when the entry's master password is not null. A
prompting message is issued only if the user has not already supplied
the appropriate password.
number
is an integer from 0 to 7. When ATTEMPTS(0) is coded, the
operator is not prompted and is not allowed to enter a password
from the console.
Abbreviation: ATT
AUTHORIZATION(entryname[ string])
specifies that a user-security-verification routine (USVR) is
available for additional security verification.
entryname
specifies the name of the USVR.
string
specifies information to be passed on to the USVR when it receives
control to verify authorization. The length defined for the
authorization verification record must be from 1 to 256
characters.
Abbreviation: AUTH
BUFFERSPACE(size)
specifies the minimum space to be provided for buffers. It is
recommended that the amount specified be not less than the amount
size
specifies the amount of space to be provided for buffers. If you
are altering the bufferspace for a VSAM catalog on a 3380, the
decimal values you can specify are 4096, 6144, 8192, 10240, 12288,
and 14336. If you are altering the bufferspace for a VSAM catalog
not residing on a 3380, the decimal values you can specify are
limited to 3072, 4608, 6144, 7680, 9216, and 10752.
CATALOG(catname[/password])
specifies the catalog containing the entry to be altered. See
"Catalog Search Order for ALTER" in topic 1.6.1 for information about
the order in which catalogs are searched.
catname
specifies the name of the catalog that contains the entry.
password
specifies the master password of the catalog that contains the
entry to be altered. If the entry to be altered is
password-protected and the catalog is also password-protected, a
password must be entered, either through this parameter or through
the entryname parameter. Alter RACF authority to the catalog is
required.
Abbreviation: CAT
CODE(code)
specifies a code name for the entry being altered. If an attempt is
made to access a password protected entry without a password, the code
name is used in a prompting message. The code enables the operator or
TSO terminal user to be prompted for the password without disclosing
the name of the entry.
CONTROLPW(password)
specifies a control password for the entry being altered.
Abbreviation: CTLPW
EMPTY|NOEMPTY
specifies what is to happen when the maximum number of generation data
sets has been cataloged.
EMPTY
specifies that, when the maximum number of generation data sets is
exceeded, all the generation data sets will be uncataloged.
Abbreviation: EMP
NOEMPTY
specifies that when the maximum number of generation data sets is
exceeded, only the oldest generation data set will be uncataloged.
Abbreviation: NEMP
ERASE|NOERASE
specifies whether the data component is to be erased when its entry in
the catalog is deleted.
ERASE
specifies the component is to be overwritten with binary zeros when
its catalog entry is deleted.
Abbreviation: ERAS
NOERASE
specifies the component is not to be overwritten with binary zeros
when its catalog entry is deleted.
Abbreviation: NERAS
EXCEPTIONEXIT(entrypoint)
specifies the name of the user-written routine that receives control
when an exception (usually an I/O error) occurs while the entry's
object is being processed.
Abbreviation: EEXT
FILE(ddname)
specifies one of the following:
FREESPACE(CI-percent[ CA-percent])
specifies the amount of space (percentage of space) that is to be left
free after any allocation and after any split of control intervals
(CI-percent) and control areas (CA-percent).
If the FREESPACE is altered after the data set has been loaded, and
sequential insert strategy processing is being used, this allocation
of free space may not be honored.
Abbreviation: FSPC
INHIBIT|UNINHIBIT
specifies whether the entry being altered can be accessed for any
operation or only for read operations.
INHIBIT
specifies that the entry being altered is to be read-only.
Abbreviation: INH
UNINHIBIT
specifies that the read-only restriction set by a previous ALTER or
EXPORT command is to be removed.
Abbreviation: UNINH
KEYS(length offset)
specifies the length and offset of the object's key. If the entry
being altered defines an alternate index, offset applies to the
alternate key in the data records in the base cluster.
The values for KEYS in the object's catalog entry are default
values. For default values, see the DEFINE command that defines
the object.
If the values for KEYS in the object's catalog entry are not default
values, and ALTER KEYS specifies the same nondefault values,
processing continues for any other parameters specified on the
command, and no error message is issued.
The new values for KEYS do not conflict with the control interval
size specified when the object was defined.
The key fits within the record whose length is specified by the
RECORDSIZE parameter.
length offset specifies the length of the key (between 1 and 255), in
bytes, and its displacement from the beginning of the data record, in
bytes.
MASTERPW(password)
specifies a master password for the entry being altered. For more
details about the object's master password, see the DEFINE command
that defines the object.
Abbreviation: MRPW
NEWNAME(newname)
specifies that the entry to be altered is to be given a new name.
You may not be able to rename a data set if you are changing the
high-level qualifiers of the data set's name and those qualifiers are
an alias name of a catalog.
Note: You can not ALTER the data portion of a page space data set to
a new name.
If another program has access to the data set while this operation
is being performed, the program may be unable to access the data
set after it is renamed. This may result in a failure.
If you specify generic names, you must specify both the entryname
and the newname as generic names. For information on specifying
generic names, see DFSMS/MVS V1R2 Managing Catalogs.
If you are renaming a VSAM data set that is RACF protected, the
existing RACF data set profile will be renamed.
If a data set profile exists for the new data set name prior to
the ALTER command, the command is terminated and the data set name
and/or protection attributes remain unchanged.
Abbreviation: NEWNM
NULLIFY([AUTHORIZATION(MODULE|STRING)]
[CODE][CONTROLPW][EXCEPTIONEXIT]
[MASTERPW][OWNER][READPW]
[RETENTION][UPDATEPW])
specifies that the protection attributes identified by subparameters
of NULLIFY are to be nullified. Attributes are nullified before any
respecification of attributes is performed.
Abbreviation: NULL
AUTHORIZATION(MODULE|STRING)
specifies that either the user-authorization routine or the
user-authorization record is to be nullified.
Abbreviation: AUTH
MODULE
specifies that the module name is to be removed from the catalog
record, but the module itself is not to be deleted. Both the
user-authorization routine and the user-authorization record
(character string) are nullified.
Abbreviation: MDLE
STRING
specifies that the authorization record is to be nullified, but
the corresponding module is not nullified.
Abbreviation: STRG
CODE
specifies that the code name used for prompting is to be nullified.
CONTROLPW
specifies that the control password is to be nullified.
Abbreviation: CTLPW
EXCEPTIONEXIT
specifies that the entry's exception exit is to be nullified. The
module name is removed from the catalog record, but the exception-exit
routine itself is not deleted.
Abbreviation: EEXT
MASTERPW
specifies that the master password is to be nullified. If a new
master password is not specified and if other passwords exist, the
highest level password that exists automatically becomes the password
for all higher levels, including the master password.
Abbreviation: MRPW
OWNER
specifies that the owner identification is to be nullified.
READPW
specifies that the read password is to be nullified.
Abbreviation: RDPW
RETENTION
specifies that the retention period which was specified in a TO or FOR
parameter is to be nullified.
Abbreviation: RETN
UPDATEPW
specifies that the update password is to be nullified.
Abbreviation: UPDPW
OWNER(ownerid)
specifies the owner identification of the entry being altered.
READPW(password)
specifies a read password for the entry being altered.
Abbreviation: RDPW
RECORDSIZE(average maximum)
specifies new average and maximum lengths for data records that will
be contained in the object whose entry is being altered.
Abbreviation: RECSZ
REMOVEVOLUMES(volser[ volser])
has two uses:
Abbreviation: RVOL
SCRATCH|NOSCRATCH
specifies whether generation data sets, when they are uncataloged, are
to be removed from the VTOC of the volume on which they reside.
SCRATCH
indicates that the data set's format-1 DSCB is to be removed
(scratched) from the VTOC so that the data set can no longer be
accessed.
Abbreviation: SCR
NOSCRATCH
indicates that the data set's format-1 DSCB is not to be removed
from the VTOC.
Abbreviation: NSCR
SHAREOPTIONS(crossregion[ crosssystem])
specifies how a data or index component of a cluster or alternate
index can be shared among users. (For a full description of data set
sharing, see DFSMS/MVS V1R2 Using Data Sets.)
crossregion
specifies the amount of sharing allowed among regions within the
same system or within multiple systems using global resource
serialization (GRS). Independent job steps in an operating system
or multiple systems using GRS can access a VSAM data set
concurrently.
To share a data set, each user must specify DISP=SHR in the data
set's DD statement. The values that can be specified are:
3 specifies that the data set can be fully shared by any number
of users. With this option, each user is responsible for
maintaining both read and write integrity for the data the
program accesses. User programs that ignore the write
integrity guidelines can cause VSAM program checks, lost or
inaccessible records, irreversible data set failures, and
other unpredictable results. This option places heavy
responsibility on each user sharing the data set.
4 specifies that the data set can be fully shared by any number
of users and buffers used for direct processing are refreshed
for each request. This option requires the program to use
the ENQ and DEQ macros to maintain data integrity while
sharing the data set. Improper use of the ENQ macro can
cause problems similar to those described under SHAREOPTIONS
3. (For information on using ENQ and DEQ, see Authorized
Assembler Services Reference.)
crosssystem
specifies the amount of sharing allowed among systems. Job steps
of two or more operating systems can gain access to the same VSAM
data set regardless of the disposition specified in each step's DD
statement for the data set. To get exclusive control of the data
set's volume, a task in one system issues the RESERVE macro. The
level of cross-system sharing allowed by VSAM applies only in a
multiple operating system environment. The values that can be
specified are:
1 Reserved
2 Reserved
3 specifies that the data set can be fully shared. With this
option, each user is responsible for maintaining both read
and write integrity for the data the program accesses. User
programs that ignore write integrity guidelines can cause
VSAM program checks, irreversible data set failures, and
other unpredictable results. This option places heavy
responsibility on each user sharing the data set.
Abbreviation: SHR
TO(date)|FOR(days)
specifies the retention period for the entry being altered.
non-VSAM data set the expiration date in the catalog will be updated,
but the expiration date in the format-1 DSCB will not be changed.
TO(date)
specifies the date, in the form yyddd, where yy is the year and
ddd is the number (001 through 365) of the day through which the
entry is to be kept.
FOR(days)
specifies the number of days for which the entry is to be kept.
The maximum number that can be specified is 9999.
UNIQUEKEY|NONUNIQUEKEY
specifies whether the alternate-key value can be found in more than
one of the base cluster's data records.
UNIQUEKEY
specifies that each alternate-key value is unique. If the same
alternate-key value is found in more than one of the base
cluster's data records, an error results.
Abbreviation: UNQK
NONUNIQUEKEY
specifies that a given alternate-key value might point to more
than one data record in the cluster. NONUNIQUEKEY can be
specified for an alternate index at any time.
Abbreviation: NUNQK
UPDATE|NOUPDATE
specifies whether a base cluster's alternate index upgrade set is to
be allocated when the path's name is allocated.
UPDATE
specifies that the cluster's alternate index upgrade set is to be
allocated when the path's name is allocated with a DD statement.
Abbreviation: UPD
NOUPDATE
specifies that the cluster's alternate index upgrade set is not to
be allocated but the path's cluster is to be allocated.
Abbreviation: NUPD
UPDATEPW(password)
specifies an update password for the entry being altered.
Abbreviation: UPDPW
UPGRADE|NOUPGRADE
specifies whether an alternate index is to be upgraded (that is, kept
up to date) when its base cluster is modified.
UPGRADE
specifies that the cluster's alternate index is upgraded (to
reflect the changed data) when the cluster's records are added to,
updated, or erased. If UPGRADE is specified when the cluster is
open, the upgrade attribute does not apply to the alternate index
until the cluster is closed and then opened (that is, a new set of
VSAM control blocks describes the cluster and its attributes).
Abbreviation: UPG
NOUPGRADE
specifies that the alternate index is not modified when its base
cluster is modified. NOUPGRADE can be specified for an alternate
index at any time.
Abbreviation: NUPG
WRITECHECK|NOWRITECHECK
specifies whether a data or index component is to be checked by a
machine action called write check when a record is written into it.
WRITECHECK
specifies that a record is to be written and then read, without
data transfer, to test for the data check condition.
Abbreviation: WCK
NOWRITECHECK
specifies that a record is to be written only.
Abbreviation: NWCK
Subtopics
3.2.3.1 Alter a Cluster's Attributes: Example 1
3.2.3.2 Alter the Entrynames of Generically Named Clusters: Example 2
3.2.3.3 Alter the Attributes of a Generation Data Group: Example 3
The ALTER command modifies some of the attributes of generation data group
GDG01. Its parameters are:
The attributes specified for the ALTER command override any attributes
previously specified for the GDG.
3.3 BLDINDEX
The BLDINDEX command builds alternate indexes for existing data sets.
Note that issuing this command against a variable-length relative record
data set results in an error. The syntax of this command is:
+------------------------------------------------------------------------+
¦ BLDINDEX ¦ {INFILE(ddname[/password])| ¦
¦ ¦ INDATASET(entryname[/password])} ¦
¦ ¦ {OUTFILE(ddname[/password] ¦
¦ ¦ [ ddname[/password]...])| ¦
¦ ¦ OUTDATASET(entryname[/password] ¦
¦ ¦ [ entryname[/password]...])} ¦
¦ ¦ [{EXTERNALSORT|INTERNALSORT}] ¦
¦ ¦ [{SORTCALL|NOSORTCALL}] ¦
¦ ¦ [SORTDEVICETYPE(device type)] ¦
¦ ¦ [SORTFILENUMBER(number)] ¦
¦ ¦ [SORTMESSAGEDD(ddname)] ¦
¦ ¦ [SORTMESSAGELEVEL({ALL|CRITICAL|NONE})] ¦
¦ ¦ [WORKFILES(ddname ddname)] ¦
¦ ¦ ¦
¦ ¦ [CATALOG(catname[/password])] ¦
+------------------------------------------------------------------------+
Subtopics
3.3.1 BLDINDEX Parameters
3.3.2 BLDINDEX Example
Subtopics
3.3.1.1 Required Parameters
3.3.1.2 Optional Parameters
INFILE(ddname[/password])|INDATASET(entryname[/password])
names the DD statement or data set that identifies the base cluster or
a path that points to the base cluster.
INFILE(ddname[/password])
specifies the DD statement that identifies the base cluster or a
path that points to the base cluster. The base cluster must be
defined in the same catalog as the alternate index, and must
contain at least one data record.
password
If the base cluster or path is password protected, supply the
read (or higher-level) password of the object named in the DD
statement. If you do not supply the password, the operator or
TSO terminal user will be prompted to supply the correct
password. Read or higher RACF authority of the object named
in the DD statement is required.
Abbreviation: IFILE
INDATASET(entryname[/password])
names the data set that identifies the base cluster or a path that
points to the base cluster. The base cluster must be defined in
the same catalog as the alternate index, and must contain at least
one data record.
password
If the base cluster or path is password protected, you supply
the read (or higher-level) password of the named object.
Otherwise, the operator or TSO terminal user will be prompted
to supply the correct password. Read or higher RACF authority
of the named objects is required.
Abbreviation: IDS
OUTFILE(ddname[/password])|OUTDATASET(entryname[/password])
names the DD statement or data set that identifies the alternate index
or a path that points to the alternate index. You can build more than
one alternate index for the same base cluster by specifying more than
one ddname or data set name with the OUTFILE or OUTDATASET parameter.
OUTFILE(ddname[/password][ ddname[/password]...])
specifies the DD statement that identifies the alternate index or
a path that points to the alternate index. The alternate index
must be defined in the same catalog as the base cluster, and must
be empty (that is, its high-used RBA equals zero) or defined with
the REUSE attribute.
password
If the alternate index or path is password protected, supply
the update- or higher-level password of the object named in
the DD statement. If you do not supply the password, the
operator or TSO terminal user will be prompted to supply the
correct password. Update or higher RACF authority of the
named object is required.
Abbreviation: OFILE
OUTDATASET(entryname[/password] [entryname[/password]...])
specifies the data set that identifies the alternate index or a
path that points to the alternate index. The alternate index must
be defined in the same catalog as the base cluster, and must be
empty (that is, its high-used RBA equals zero) or must have been
defined with the REUSE attribute.
password
If the alternate index or path is password protected, you
supply the update- or higher-level password of the named
object. Otherwise, the operator or TSO terminal user may be
prompted to supply the correct password. Update or higher
RACF authority for the named object is required.
Abbreviation: ODS
CATALOG(catname[/password])
names the catalog in which the work files are to be defined. The work
files are defined and used by the BLDINDEX routine. When all
alternate indexes are built and the work files are no longer needed by
the BLDINDEX routine, they are deleted.
password
If the catalog is password protected, supply its update- or
higher-level password. If you do not supply the password, the
operator will be prompted to supply the correct password. Update
or higher RACF authority to the catalog is required.
Abbreviation: CAT
EXTERNALSORT|INTERNALSORT
specifies whether the key-pointer pairs are to be sorted entirely
within virtual storage.
EXTERNALSORT
specifies that two external sort work files will be defined and
built as entry-sequenced clusters. You must provide two DD
statements that describe the external sort work files to be
defined by BLDINDEX. For more information on how to code the DD
statements that describe the work files, see DFSMS/MVS V1R2 Using
Data Sets. You can name the DD statements IDCUT1 and IDCUT2.
When you choose other names for the work file DD statements, you
must identify those DD statements with the WORKFILES parameter.
Abbreviation: ESORT
INTERNALSORT
specifies that access method services will sort the key-pointer
pairs entirely within the user-provided virtual storage if
possible. If not enough virtual storage is provided when you
specify INTERNALSORT, two external sort work files are built and
the key-pointer pairs are sorted externally. In this case, you
must provide DD statements as for EXTERNALSORT. If the minimum
amount of virtual storage is not provided (see DFSMS/MVS V1R2
Using Data Sets), the BLDINDEX processing terminates with an error
message.
Abbreviation: ISORT
{SORTCALL|NOSORTCALL}
Specifies whether or not DFSORT will be used to sort the alternate
index.
SORTCALL
Indicates that DFSORT will be used to sort the alternate index.
EXTERNALSORT, INTERNALSORT, WORKFILES, and CATALOG are ignored
when SORTCALL is specified and DFSORT is available. SORTCALL is
the default.
NOSORTCALL
Indicates that DFSORT will not be used to sort the alternate
index. SORTMESSAGELEVEL, SORTDEVICETYPE, SORTMESSAGEDD and
SORTFILENUMBER are not allowed if NOSORTCALL is specified.
SORTDEVICETYPE(device type)
specifies the DASD device type to be passed to DFSORT in the DYNALLOC
parameter in the OPTION control statement. You only need to specify
this parameter if you wish to override the default device type used at
your site for DFSORT work data sets. See DFSORT Application
Programming Guide for further details on the DYNALLOC parameter. This
parameter is not allowed if NOSORTCALL is specified.
SORTFILENUMBER(number)
specifies the maximum number of work data sets to be passed to DFSORT
in the DYNALLOC parameter in the OPTION control statement. You only
need to specify this parameter if you wish to override the number of
work data sets that BLDINDEX determines are needed. See DFSORT
Application Programming Guide for further details on the DYNALLOC
parameter. This parameter is not allowed if NOSORTCALL is specified.
SORTMESSAGEDD(ddname)
Specifies the ddname that describes the DFSORT message data set. If a
DD statement for this ddname is not present, a message data set with
this ddname will be allocated dynamically as a SYSOUT=* data set.
SYSOUT is the default for ddname. You must not specify any ddname
reserved for use by IDCAMS (SYSPRINT or SYSIN) or DFSORT. See DFSORT
Application Programming Guide for a list of reserved ddnames. This
parameter is not allowed if NOSORTCALL or SORTMESSAGELEVEL (NONE) is
specified.
SORTMESSAGELEVEL({ALL|CRITICAL|NONE})
Specifies the level of DFSORT messages to be printed to the DFSORT
message data set. This parameter is not allowed if NOSORTCALL is
specified.
ALL
Indicates that all DFSORT messages and control statements will be
printed to the message data set.
CRITICAL
Indicates that only critical DFSORT messages will be printed to
the message data set. No DFSORT control statements will be
printed. Critical is the default.
NONE
Indicates that no DFSORT messages or control statements will be
printed to the message data set.
WORKFILES(ddname ddname)
names the DD statements that identify the work files you want BLDINDEX
to define if an external sort of the key-pointer pairs is required.
You can use DD statements to describe two work files that will be
defined and opened before the BLDINDEX routine begins processing the
base cluster's data records.
When you code the DD statements that describe the work files and
identify them with the standard ddnames, IDCUT1 and IDCUT2, you do not
need to specify the WORKFILES parameter.
Abbreviation: WFILE
Subtopics
3.3.2.1 Build an Alternate Index Over a Key-Sequenced Data Set
INFILE names the base cluster. The ddname of the DD statement for
this object must be identical to this name. Note that a password is
not required, because the base cluster is not protected.
OUTFILE names the alternate index. The ddname of the DD statement for
this object must be identical to this name. The update password of
the alternate index is also required.
deleted from the catalog. The update password will permit these
actions.
3.4 CNVTCAT
The CNVTCAT command converts OS CVOL entries into VSAM catalog entries.
The syntax of this command is:
+------------------------------------------------------------------------+
¦ CNVTCAT ¦ {INFILE(ddname/)| ¦
¦ ¦ INDATASET(entryname)} ¦
¦ ¦ {OUTFILE(ddname[/password])| ¦
¦ ¦ OUTDATASET(entryname[/password])| ¦
¦ ¦ CATALOG(catname[/password])} ¦
¦ ¦ [CVOLEQUATES((catname (volser ¦
¦ ¦ [ volser...]))[ (catname...)...])] ¦
¦ ¦ [LIST|NOLIST] ¦
¦ ¦ [MASTERCATALOG(catname[/password])] ¦
+------------------------------------------------------------------------+
Subtopics
3.4.1 CNVTCAT Parameters
3.4.2 CNVTCAT Examples
Subtopics
3.4.1.1 Required Parameters
3.4.1.2 Optional Parameters
INFILE(ddname)|INDATASET(entryname)
specifies the DD statement or an alias entryname for an OS CVOL to be
converted to a VSAM catalog.
INFILE(ddname)
names the DD statement for an OS CVOL to be converted.
ddname
names the DD statement that identifies the OS CVOL to be
converted.
Abbreviation: IFILE
INDATASET(entryname)
gives the alias entryname (in the master catalog) of the OS CVOL
to be converted. If INDATASET is specified, an attempt is made to
dynamically allocate the OS CVOL. The OS system catalog
entryname, SYSCTLG, cannot be specified.
entryname
names the entry to be converted.
Abbreviation: IDS
OUTFILE(ddname[/password])|OUTDATASET(entryname[/password])|
CATALOG(catname[/password])
identifies the VSAM catalog that is to receive the converted OS CVOL
entries.
OUTFILE(ddname[/password])
names the DD statement that identifies the target VSAM catalog.
ddname
identifies the VSAM target catalog.
password
gives the update- or higher-level password for a
password-protected catalog. Update or higher RACF authority to
the catalog is required.
Abbreviation: OFILE
OUTDATASET(entryname[/password])
names the VSAM target catalog. If OUTDATASET is specified, an
attempt is made to dynamically allocate the catalog.
entryname
names the target VSAM catalog. The alias name of the catalog will
not be accepted.
password
gives the update- or higher-level password for a password
Abbreviation: ODS
CATALOG(catname[/password])
names the catalog that is to receive the converted entries. The
alias name of the catalog will not be accepted.
password
gives the update- or higher-level password for a
password-protected catalog. Update or higher RACF authority for
the catalog is required.
Abbreviation: CAT
catname
names an existing VSAM catalog. This catalog contains or is to
contain converted OS/CVOL entries that were cataloged in the OS
CVOL pointed to by the CVPE being converted.
volser
specifies the volume serial number(s) of one or more OS CVOLs for
which entries have been or are to be converted.
Abbreviation: CVEQU
LIST|NOLIST
specifies whether entries are to be listed.
LIST
specifies that entries are to be listed after they are converted.
NOLIST
specifies that entries are not to be listed after they are
converted.
Abbreviation: NLIST
MASTERCATALOG(catname[/password])
names the master catalog in which to place any aliases for user
catalogs. MASTERCATALOG is required when CVOLEQUATES is specified.
password
gives the master catalog's update- or higher-level password.
Abbreviation: MCAT
The following examples are related and show how the entries of two OS
CVOLs in a system can be converted to entries in a catalog. The OS CVOL
on volume VSER09 contains control volume pointer entries (CVPEs) that
point to the OS CVOL on volume VSER08. Therefore, the two OS CVOLs are
chained together with VSER08's OS CVOL at the end of the chain. When two
or more OS CVOLs are chained together, the OS CVOL at the end of the chain
should be converted first.
Subtopics
3.4.2.1 Convert OS CVOL Entries to Entries in a VSAM Catalog: Example 1
3.4.2.2 Convert an OS CVOL Having Control Volume Pointer Entries: Example 2
The CNVTCAT command converts the entries in the OS CVOL on volume VSER08
to entries in a user catalog, USER11.
The CNVTCAT command converts the entries in the OS CVOL on volume VSER09
to entries in a user catalog, USER12. Because CVOLEQUATES is specified,
an alias entry is built and put in the master catalog to relate the name
VSER08 to the user catalog USER11.
NOLIST specifies that the entries are not to be listed after they are
converted.
The DEFINE ALIAS command defines an alternate name for a non-VSAM data set
or a user catalog. The syntax of this command is:
+------------------------------------------------------------------------+
¦ DEFINE ¦ ALIAS ¦
¦ ¦ (NAME(aliasname) ¦
¦ ¦ RELATE(entryname)) ¦
¦ ¦ [CATALOG(catname[/password])] ¦
+------------------------------------------------------------------------+
Subtopics
3.5.1 DEFINE ALIAS Parameters
3.5.2 DEFINE ALIAS Examples
Subtopics
3.5.1.1 Required Parameters
3.5.1.2 Optional Parameter
ALIAS
specifies that an alias for a user catalog or non-VSAM data set is to
be defined.
NAME(aliasname)
specifies the alias (the alternate entryname) for a user catalog or
non-VSAM data set. An alias must be unique within a catalog.
RELATE(entryname)
names the entry (the user catalog entryname or the non-VSAM data set
name) for which the alias is being defined.
Abbreviation: REL
CATALOG(catname[/password])
identifies the catalog in which the alias is to be defined. If the
catalog's volume is physically mounted, it is dynamically allocated.
The volume must be mounted as permanently resident or reserved. For
information about the order in which a catalog is selected when the
catalog's name is not specified, see "Catalog Selection Order for
DEFINE" in topic 1.6.4.
catname
names the catalog. When the alias is for a user catalog
connector, catname is the name of the master catalog.
password
specifies a password. If the catalog is password protected,
supply the catalog's update- or higher-level password. If you do
not supply the password, the operator or TSO terminal user is
prompted to supply the correct password. Update or higher RACF
authority to the catalog is required.
Abbreviation: CAT
Subtopics
3.5.2.1 Define an Alias for a Non-VSAM Data Set: Example 1
3.5.2.2 Define an Alias for a User Catalog: Example 2
RELATE gives the name that the alias is an alternate entryname for,
EXAMPLE.NONVSAM.
CATALOG supplies the name and update password of the user catalog.
The DEFINE ALIAS command defines an alias, D40, for the user catalog,
D27UCAT1. Any data set defined in D27UCAT1 having D40 as its first
qualifier will be located by VSAM in D27UCAT1 when it is referred to in an
access method services command or user program without requiring a JOBCAT
or STEPCAT DD statement for D27UCAT1. D27UCAT1 can also be referred to
using the alias D40.
RELATE specifies the name of the user catalog for which D40 is an
alternate entryname (alias).
CATALOG supplies the name and update password of the master catalog.
+------------------------------------------------------------------------+
¦ DEFINE ¦ ALTERNATEINDEX ¦
¦ ¦ (NAME(entryname) ¦
¦ ¦ RELATE(entryname[/password]) ¦
¦ ¦ {CYLINDERS(primary[ secondary])| ¦
¦ ¦ RECORDS(primary[ secondary])| ¦
¦ ¦ TRACKS(primary[ secondary])} ¦
¦ ¦ VOLUMES(volser[ volser...]) ¦
¦ ¦ [ATTEMPTS(number|2)] ¦
¦ ¦ [AUTHORIZATION(entrypoint[ string])] ¦
¦ ¦ [BUFFERSPACE(size)] ¦
¦ ¦ [CODE(code)] ¦
¦ ¦ [CONTROLINTERVALSIZE(size)] ¦
¦ ¦ [CONTROLPW(password)] ¦
¦ ¦ [ERASE|NOERASE] ¦
¦ ¦ [EXCEPTIONEXIT(entrypoint)] ¦
¦ ¦ [FILE(ddname)] ¦
¦ ¦ [FREESPACE(CI-percent[ CA-percent]|0 0) ¦
¦ ¦ [IMBED|NOIMBED] ¦
¦ ¦ [KEYRANGES((lowkey highkey)[(lowkey highkey)...])] ¦
¦ ¦ [KEYS(length offset|64 0)] ¦
¦ ¦ [MASTERPW(password)] ¦
¦ ¦ [MODEL(entryname[/password][ catname[/password ¦
¦ ¦ [ORDERED|UNORDERED] ¦
¦ ¦ [OWNER(ownerid)] ¦
¦ ¦ [READPW(password)] ¦
¦ ¦ [RECORDSIZE(average maximum|4086 32600)] ¦
¦ ¦ [REPLICATE|NOREPLICATE] ¦
¦ ¦ [REUSE|NOREUSE] ¦
¦ ¦ [SHAREOPTIONS(crossregion[ crosssystem]|1 3)] ¦
¦ ¦ [SPEED|RECOVERY] ¦
¦ ¦ [TO(date)|FOR(days)] ¦
¦ ¦ [UNIQUE|SUBALLOCATION] ¦
¦ ¦ [UNIQUEKEY|NONUNIQUEKEY] ¦
¦ ¦ [UPDATEPW(password)] ¦
¦ ¦ [UPGRADE|NOUPGRADE] ¦
¦ ¦ [WRITECHECK|NOWRITECHECK]) ¦
¦ ¦ ¦
¦ ¦ DATA ¦
¦ ¦ ([ATTEMPTS(number)] ¦
¦ ¦ [AUTHORIZATION(entrypoint[ string]) ] ¦
¦ ¦ [BUFFERSPACE(size)] ¦
¦ ¦ [CODE(code)] ¦
¦ ¦ [CONTROLINTERVALSIZE(size)] ¦
+-----------+------------------------------------------------------------¦
¦ ¦ [CONTROLPW(password)] ¦
¦ ¦ [CYLINDERS(primary[ secondary])| ¦
¦ ¦ RECORDS(primary[ secondary])| ¦
¦ ¦ TRACKS(primary[ secondary])] ¦
¦ ¦ [ERASE|NOERASE] ¦
¦ ¦ [EXCEPTIONEXIT(entrypoint)] ¦
¦ ¦ [FILE(ddname * *)] ¦
¦ ¦ [FREESPACE(CI-percent[ CA-percent]) ] ¦
¦ ¦ [KEYRANGES((lowkey highkey)[(lowkey highkey)...])] ¦
¦ ¦ [KEYS(length offset)] ¦
¦ ¦ [MASTERPW(password)] ¦
¦ ¦ [MODEL(entryname[/password][ catname[/password] ¦
¦ ¦ [NAME(entryname)] ¦
¦ ¦ [ORDERED|UNORDERED] ¦
¦ ¦ [OWNER(ownerid)] ¦
¦ ¦ [READPW(password)] ¦
¦ ¦ [RECORDSIZE(average maximum)] ¦
¦ ¦ [REUSE|NOREUSE] ¦
¦ ¦ [SHAREOPTIONS(crossregion[ crosssystem])] ¦
¦ ¦ [SPEED|RECOVERY] ¦
¦ ¦ [UNIQUE|SUBALLOCATION] ¦
¦ ¦ [UNIQUEKEY|NONUNIQUEKEY] ¦
¦ ¦ [UPDATEPW(password)] ¦
¦ ¦ [VOLUMES(volser[ volser...])] ¦
¦ ¦ [WRITECHECK|NOWRITECHECK])] ¦
¦ ¦ ¦
¦ ¦ [INDEX ¦
¦ ¦ ([ATTEMPTS(number)] ¦
¦ ¦ [AUTHORIZATION(entrypoint[ string]) ] ¦
¦ ¦ [CODE(code)] ¦
¦ ¦ [CONTROLINTERVALSIZE(size)] ¦
¦ ¦ [CONTROLPW(password)] ¦
¦ ¦ [CYLINDERS(primary[ secondary])| ¦
¦ ¦ RECORDS(primary[ secondary])| ¦
¦ ¦ TRACKS(primary[ secondary])] ¦
¦ ¦ [EXCEPTIONEXIT(entrypoint)] ¦
¦ ¦ [FILE(ddname)] ¦
¦ ¦ [IMBED|NOIMBED] ¦
¦ ¦ [MASTERPW(password)] ¦
¦ ¦ [MODEL(entryname[/password][ catname[/password]])] ¦
¦ ¦ [NAME(entryname)] ¦
¦ ¦ [ORDERED|UNORDERED] ¦
¦ ¦ [OWNER(ownerid)] ¦
¦ ¦ [READPW(password)] ¦
¦ ¦ [REPLICATE|NOREPLICATE] ¦
¦ ¦ [REUSE|NOREUSE] ¦
¦ ¦ [SHAREOPTIONS(crossregion[ crosssystem])] ¦
¦ ¦ [STAGE|BIND|CYLINDERFAULT] ¦
¦ ¦ [UNIQUE|SUBALLOCATION] ¦
¦ ¦ [UPDATEPW(password)] ¦
¦ ¦ [VOLUMES(volser[ volser...])] ¦
¦ ¦ [WRITECHECK|NOWRITECHECK])] ¦
¦ ¦ ¦
¦ ¦ [CATALOG(catname[/password])] ¦
+------------------------------------------------------------------------+
Subtopics
3.6.1 DEFINE ALTERNATEINDEX Parameters
3.6.2 Data and Index Components of an Alternate Index
3.6.3 DEFINE ALTERNATEINDEX Example
Subtopics
3.6.1.1 Required Parameters
3.6.1.2 Optional Parameters
ALTERNATEINDEX
specifies that an alternate index is to be defined.
Abbreviation: AIX
NAME(entryname)
specifies the alternate index's entryname or the name of each of its
components. The entryname specified for the alternate index as a
whole is not propagated to the alternate index's components.
You can define a separate entryname for the alternate index, its data
component, and its index component. If no name is specified for the
data or index component, a name is generated.
When the alternate index, data component, and index component are
individually named, each can be addressed.
Note: A qualified data set name and an unqualified data set name
cannot be placed in the same catalog if the first qualifier of the
qualified name is the same as the unqualified name. For example,
PAYROLL and PAYROLL.DATA cannot exist on the same catalog.
RELATE(entryname[/password])
names the alternate index's base cluster. The base cluster is an
entry-sequenced cluster or a key-sequenced cluster to which the
alternate index is to be related. You cannot relate an alternate
index to a reusable cluster or a relative record cluster.
password
specifies either the base cluster's master password or the
catalog's master password (the master password of the catalog that
contains the base cluster's entry).
Abbreviation: REL
CYLINDERS(primary[ secondary])|
RECORDS(primary[ secondary])|
TRACKS(primary[ secondary])
specifies the amount of space to be allocated to the alternate index
from the volume's available space when UNIQUE is specified, or from
the available space of one of the volume's VSAM data spaces.
Unless you specify the MODEL parameter, you must specify one, and only
When the data component is not divided into key ranges and more than
one volume is specified, the primary amount of space is allocated only
on the first volume when the component is defined. When the component
increases in size so as to extend on to additional volumes, the first
allocation on each overflow volume is the primary amount.
When you specify UNIQUE and the alternate index's data space is the
first data space on a volume that belongs to a recoverable catalog,
one additional cylinder is allocated for the catalog recovery area.
primary
specifies the initial amount of space to be allocated to the
alternate index.
secondary
specifies the amount of space that is to be allocated each time
the alternate index extends, as a secondary extent. When
secondary is specified and the alternate index is allocated, space
for the alternate index's data and index components can be
expanded to include a maximum of 123 extents.
If the data space that contains all or part of the cluster cannot
be extended because the cluster's secondary allocation amount is
greater than the data space's secondary allocation amount, VSAM
builds a new data space. The new data space's primary and
secondary allocation amounts are equal to the cluster's secondary
allocation amount.
VOLUMES(volser[ volser...])
specifies the volume(s) on which an alternate index's components are
to have space.
You may repeat a volume serial number in the list only if you specify
the KEYRANGE parameter. You may want to do this so you will have more
than one key range on the same volume. Even in this case, repetition
is only valid if all duplicate occurrences are used for the primary
allocation of some key range.
CATALOG: The data space on the volume must be defined before the
alternate index, and the catalog specified must own the volume.
Abbreviation: VOL
ATTEMPTS(number|2)
specifies the maximum number of times the operator can try to enter a
correct password in response to a prompting message.
This parameter only has effect when the alternate index's master
password is not null. A prompting message is issued only when the
user has not already supplied the appropriate password.
number
is an integer from 0 to 7. When ATTEMPTS(0) is coded, the
operator is not prompted and is not allowed to enter a password
from the console.
Abbreviation: ATT
AUTHORIZATION(entrypoint[ string])
specifies that a user-security-verification routine (USVR) is
available for additional security verification. When a protected
alternate index is opened and the user supplies a correct password
other than the alternate index's master password, the USVR receives
control. For details on coding a USVR, see DFSMS/MVS V1R2 Using Data
Sets.
This parameter has effect only when the master password is not null.
entrypoint
specifies the name of the USVR.
string
specifies information to be passed to the USVR when it receives
control to verify authorization. The length defined for the
authorization verification record must be from 1 to 256
characters.
Abbreviation: AUTH
BUFFERSPACE(size)
specifies the minimum space that your program's address space is to
provide for buffers.
When you specify BUFFERSPACE, you must specify at least enough space
to contain two data control intervals and one index control interval.
The buffer space size you specify helps VSAM determine the data
component's and index component's control interval size. If the
specified size is less than VSAM requires for the buffers needed to
run your job, VSAM terminates your job and provides an appropriate
error message.
When you do not specify BUFFERSPACE, VSAM determines the buffer space
size. VSAM determines the control interval size first, then sets the
buffer space amount equal to two data control intervals and one index
control interval.
size
is the amount of space to be provided for buffers. The value can
be expressed in decimal (n), hexadecimal (X'n'), or binary (B'n')
form, but must not exceed 16776704.
CATALOG(catname[/password])
identifies the catalog in which the alternate index is to be defined.
The catalog also contains the base cluster's entry (see the RELATE
parameter above). For information about the order in which a catalog
is selected if the catalog's name is not specified, see "Catalog
Selection Order for DEFINE" in topic 1.6.4.
catname
specifies the catalog's name.
password
specifies the catalog's update- or higher-level password. If the
catalog is password-protected, you must supply the catalog's
update- or higher-level password. If no password is specified
with the CATALOG parameter, VSAM will prompt the operator for the
catalog's update password. Update or higher RACF authority to the
catalog is required.
Abbreviation: CAT
CODE(code)
specifies a code name for the alternate index. If an attempt is made
to access a password-protected alternate index without first supplying
an appropriate password, a prompting message will be issued to the
operator's console (see ATTEMPTS above). The prompting message
includes the code name, which identifies the alternate index without
revealing its entryname.
This parameter only has effect when the alternate index's master
password is not null.
If you do not specify a code name for the alternate index, the
prompting message identifies the alternate index with its entryname.
CONTROLINTERVALSIZE(size)
specifies the size of the alternate index's control intervals. The
size of the control interval depends on the maximum size of data
records, and on the amount of buffer space specified.
When you do not specify the control interval size, VSAM determines the
control interval size. If you have not specified BUFFERSPACE and the
size of your records permits, VSAM selects the optimum size for the
data control interval size and 512 bytes for the index control
interval size.
You can specify the following values for the index component's
control interval size:
CONTROLPW(password)
specifies a control password for the entry being defined.
Abbreviation: CTLPW
ERASE|NOERASE
specifies whether the alternate index data component's records are to
be erased when the alternate index is deleted.
ERASE
specifies that the records of the alternate index data component
are to be overwritten with binary zeros when the alternate index
is deleted.
Abbreviation: ERAS
NOERASE
specifies that the records of the alternate index data component
are not to be overwritten with binary zeros.
Abbreviation: NERAS
EXCEPTIONEXIT(entrypoint)
specifies the name of the user-written routine, called the exception
exit routine, that receives control when an exceptional I/O error
condition occurs during the transfer of data between your program's
address space and the alternate index's direct access storage space.
(An exception is any condition that causes a SYNAD exit to be taken.)
Abbreviation: EEXT
FILE(ddname)
names the DD statement that identifies the direct access device(s) and
volume(s) on which space is to be allocated to the alternate index.
If more than one volume is specified in a volume list, all volumes
must be of the same device type. When the data component and index
component are to reside on separate devices, you can specify a
separate FILE parameter as a parameter of DATA and INDEX to point to
different DD statements.
//ddname DD UNIT=(devtype[,unitcount]),
// VOL=SER=(volser1,volser2,volser3,...),...
Note: When FILE refers to more than one volume of the same device
type, the DD statement that describes the volumes cannot be a
concatenated DD statement.
FREESPACE(CI-percent[ CA-percent]|0 0 )
specifies the amount of space that is to be left empty after any
primary or secondary allocation and any split of control intervals
(CI-percent) and control areas (CA-percent) when the alternate index
is built (see "BLDINDEX" in topic 3.3).
The amount of empty space in the control interval and control area is
available for data records that are updated and inserted after the
alternate index is initially built.
The percentages must be equal to or less than 100. When you specify
100% of free space, one data record is placed in the first control
interval of each control area when the alternate index is built.
Abbreviation: FSPC
IMBED|NOIMBED
specifies whether the sequence set (the lowest level of the index) is
to be placed with the alternate index's data component.
IMBED
specifies that the sequence-set record for each control area is to
be written as many times as it will fit on the first track
adjacent to the control area. If the allocation is less than a
cylinder, one track will be added to the primary and secondary
allocation quantities.
Abbreviation: IMBD
NOIMBED
specifies that the sequence-set record for each control area is to
be written with the other index records.
Abbreviation: NIMBD
All index records are together, and all index records are
replicated (REPLICATE and NOIMBED).
KEYRANGES((lowkey highkey)
[(lowkey highkey)...])
specifies that portions of the alternate index's data component are to
be put on different volumes. Each portion of the alternate index is
called a key range.
The maximum number of key ranges for an alternate index is 123. Key
ranges must be in ascending order, and are not allowed to overlap.
However, a gap can exist between two key ranges. You cannot insert
records within the gap.
lowkey
specifies the low key of the key range. If lowkey is shorter than
the actual keys, it will be padded on the right with binary zeros.
highkey
specifies the high key of the key range. If highkey is shorter
than the actual keys, it will be padded on the right with binary
ones.
When there are more volumes in the volume serial number list than
there are key ranges, the excess volumes are used for overflow
records from any key range without consideration for key range
boundaries.
When there are fewer volumes in the volume serial number list than
there are key ranges, the excess key ranges are allocated on the
last volume specified. UNIQUE cannot also be specified.
KEYS: The low key and high key values must not exceed the key
length specified in the KEYS parameter. The KEYS parameter must
be specified in the same component as the KEYRANGE parameter.
Abbreviation: KRNG
KEYS(length offset|64 0)
describes the alternate-key field in the base cluster's data record.
The sum of length plus offset cannot be greater than the length of the
base cluster's data record.
length offset
specifies the length of the alternate key (between 1 and 255), in
bytes, and its displacement from the beginning of the base
cluster's data record, in bytes.
MASTERPW(password)
specifies a master password for the entry being defined. The master
password allows all access method services operations against the
alternate index entry and its data and index entries, and allows the
user's program to access the alternate index's contents without
restriction. For more details on how passwords can be used, see
DFSMS/MVS V1R2 Managing Catalogs or DFSMS/MVS V1R2 Using Data Sets.
Abbreviation: MRPW
MODEL(entryname[/password]
[ catname[/password]])
specifies an existing entry to be used as a model for the entry being
defined.
You can use an existing alternate index's entry as a model for the
attributes of the alternate index being defined. For details about
how a model is used, see DFSMS/MVS V1R2 Managing Catalogs.
You may use some attributes of the model and override others by
explicitly specifying them in the definition of the cluster or
component. If you do not want to add or change any attributes, you
need specify only the entry type (alternate index, data, or index) of
the model to be used and the name of the entry to be defined.
entryname
names the entry to be used as a model.
password
specifies a password. If the model entry is password-protected
and it is cataloged in a password-protected catalog, you supply
the read- or higher-level password of either the model entry or
its catalog. If you supply both passwords, the catalog's password
is used. Read or higher RACF authority to the model or catalog is
required.
catname
names the model entry's catalog. You must identify the catalog
ORDERED|UNORDERED
specifies whether volumes are to be used in the order in which they
are listed in the VOLUMES parameter.
ORDERED
specifies that the volumes are to be used in the order in which
they are listed for the VOLUMES parameter.
When you want each key range to reside on a separate volume, you
can use ORDERED so that the first key range goes on the first
volume, the second key range goes on the second volume, and so on.
Abbreviation: ORD
UNORDERED
specifies no order for the use of the volumes specified in the
VOLUMES parameters.
Abbreviation: UNORD
OWNER(ownerid)
specifies the identification of the alternate index's owner.
Note to TSO users: If the owner is not identified with the OWNER
parameter, the TSO user's userid becomes the ownerid.
READPW(password)
specifies a read password for the entry being defined. The read
password permits read operations against the entry's records.
fields VSAM inserts into stored records). For more details on how
passwords can be used, see DFSMS/MVS V1R2 Managing Catalogs.
Abbreviation: RDPW
where:
average and maximum are any integer values that do not exceed the
capacity of a control area. You can identify the records as fixed
length by specifying the same value for average and maximum.
You can use the following formulas to determine the size of the
alternate index record when the alternate index supports:
RECSZ = 5 + AIXKL + (n x 4)
where:
- BCKL is the base cluster's prime-key length (you can issue the
access method services LISTCAT command to determine the base
cluster's prime-key length).
When you also specify NONUNIQUEKEY, the record size you specify should
be large enough to allow for as many key pointers or RBA pointers as
you anticipate. The record length values apply only to the alternate
index's data component.
Note: REPRO and EXPORT will not support data sets with record sizes
greater than 32760.
Abbreviation: RECSZ
REPLICATE|NOREPLICATE
specifies how many times each record in the alternate index's index
component is to be written on a direct access device track.
REPLICATE
specifies that each index record is to be written on a DASD track
as many times as it will fit.
Abbreviation: REPL
NOREPLICATE
specifies that the index record is to be written on a DASD track
only one time.
Abbreviation: NREPL
REUSE|NOREUSE
specifies whether the alternate index can be used over and over as a
new alternate index.
REUSE
specifies that the alternate index can be used over again as a new
alternate index. When a reusable alternate index is opened, its
high-used RBA can be set to zero if you open it with an access
control block that specifies the RESET attribute.
You cannot specify REUSE when you also specify KEYRANGES or UNIQUE
for the alternate index or its components. Reusable alternate
Abbreviation: RUS
NOREUSE
specifies that the alternate index cannot be used again as a new
alternate index.
Abbreviation: NRUS
SHAREOPTIONS(crossregion[ crosssystem]|1 3)
specifies how an alternate index's data or index component can be
shared among users.
For data integrity purposes, you should make sure that share options
specified for data and index components are the same. For a
description of data set sharing, see DFSMS/MVS V1R2 Using Data Sets.
crossregion
specifies the amount of sharing allowed among regions within the
same system or within multiple systems using global resource
serialization (GRS). Independent job steps in an operating system
or multiple systems using GRS can access a VSAM data set
concurrently. To share a data set, each user must specify
DISP=SHR in the data set's DD statement. The values that can be
specified are:
3 specifies that the data set can be fully shared by any number
of users. With this option, each user is responsible for
maintaining both read and write integrity for the data the
program accesses. User programs that ignore the write
integrity guidelines can cause VSAM program checks, lost or
inaccessible records, irreversible data set failures, and
other unpredictable results. This option places heavy
responsibility on each user sharing the data set.
4 specifies that the data set can be fully shared by any number
of users, and buffers used for direct processing are
crosssystem
specifies the amount of sharing allowed among systems. Job steps
of two or more operating systems can gain access to the same VSAM
data set regardless of the disposition specified in each step's DD
statement for the data set.
1 Reserved
2 Reserved
3 specifies that the data set can be fully shared. With this
option, each user is responsible for maintaining both read
and write integrity for the data that user's program
accesses. User programs that ignore write integrity
guidelines can cause VSAM program checks, irreversible data
set failures, and other unpredictable results. This option
places heavy responsibility on each user sharing the data
set.
Each GET request results in all the user's input buffers being
refreshed. The contents of each data and index buffer being used
by the user's program are retrieved from the VSAM object's direct
access device.
Abbreviation: SHR
SPEED|RECOVERY
specifies whether the data component's control areas are to be
preformatted before alternate index records are loaded into them.
When you specify RECOVERY, your initial load takes longer because the
control areas are written initially with end-of-file indicators and
again with your alternate index records. When you specify SPEED, your
initial load is quicker.
SPEED
specifies that the data component's space is not to be
preformatted. Its space might contain data records from a
previous use of the space, or it might contain binary zeros; its
contents are unpredictable.
If the initial load fails, you must load the alternate index
records again from the beginning because VSAM is unable to
determine where your last correctly written record is. VSAM
cannot find a valid end-of-file indicator when it searches your
alternate index records.
RECOVERY
specifies that the data component's control areas are written with
records that indicate end-of-file. When an alternate index record
is written into a control interval, it is always followed by a
record that identifies the record that has just been written as
the last record in the alternate index.
If the initial load fails, you can resume loading alternate index
records after the last correctly written record, because an
end-of-file indicator identifies it as the last record.
Abbreviation: RCVY
TO(date)|FOR(days)
specifies the retention period for the alternate index. The alternate
index is not automatically deleted when the expiration date is
reached. When you do not specify a retention period, the alternate
index can be deleted at any time.
TO(date)
specifies the date, in the form yyddd, where yy is the year and
ddd is the Julian date (001, for January 1, through 365, for
December 31), through which the alternate index is to be kept
before it is allowed to be deleted.
FOR(days)
UNIQUE|SUBALLOCATION
specifies whether the alternate index's components are allocated an
amount of space from the volume's available space (UNIQUE) or from a
VSAM data space's available space (SUBALLOCATION).
UNIQUE
specifies that a VSAM data space is to be built and assigned
exclusively to each component of the alternate index. The data
space is created when the alternate index is defined. The
alternate index's volume(s) must be mounted.
Abbreviation: UNQ
SUBALLOCATION
specifies that space from one of the VSAM data spaces on the
volume is to be assigned to the alternate index's component.
Abbreviation: SUBAL
REUSE: You cannot specify REUSE when you specify UNIQUE for an
alternate index or its components.
VOLUMES: When UNIQUE is not specified, VSAM data space must exist
on the volume that is to contain the alternate index's component.
UNIQUEKEY|NONUNIQUEKEY
specifies whether more than one data record (in the base cluster) can
contain the same key value for the alternate index.
UNIQUEKEY
specifies that each alternate index key points to only one data
record. When the alternate index is built (see "BLDINDEX" in
topic 3.3) and more than one data record contains the same key
value for the alternate index, the BLDINDEX processing terminates
with an error message.
Abbreviation: UNQK
NONUNIQUEKEY
specifies that a key value for the alternate index can point to
more than one data record in the base cluster. The alternate
index's key record can point to a maximum of 32767 records with
nonunique keys.
Abbreviations: NUNQK
UPDATEPW(password)
specifies the update password for the entry being defined. The update
password permits read and write operations against the entry's
records.
If a read password is the only password specified for the object (that
is, it is the highest-level password), it propagates upward and
becomes the password for all higher levels. If you specify a
higher-level password and do not specify an update password, the
update or read password is null.
Abbreviation: UPDPW
UPGRADE|NOUPGRADE
specifies whether the alternate index is to be upgraded (that is, kept
up to date) when its base cluster is modified.
UPGRADE
specifies that the cluster's alternate index is upgraded to
reflect changed data when the base cluster's records are added to,
updated, or erased.
includes all the base cluster's alternate indexes that are opened
when the base cluster is opened for write operations.
Abbreviation: UPG
NOUPGRADE
specifies that the alternate index is not to be upgraded when its
base cluster is modified.
Abbreviation: NUPG
WRITECHECK|NOWRITECHECK
specifies whether an alternate index or component is to be checked by
a machine action called write check when a record is written into it.
WRITECHECK
specifies that a record is written and then read, without data
transfer, to test for the data check condition.
Abbreviation: WCK
NOWRITECHECK
specifies that the alternate index or component is not to be
checked by a write check.
Abbreviation: NWCK
Attributes can be specified separately for the alternate index's data and
index components. A list of the DATA and INDEX parameters is provided at
the beginning of this section. These parameters are described in detail
as parameters of the alternate index as a whole. Restrictions are noted
with each parameter's description.
Subtopics
3.6.3.1 Define an Alternate Index
KEYS specifies the length and location of the alternate key field in
each of the base cluster's data records. The alternate key field is
the first three bytes of each data record.
NONUNIQUEKEY specifies that the alternate key value might be the same
for two or more data records in the base cluster.
When you use the DEFINE CLUSTER command, you can specify attributes for
the cluster as a whole and for the components of the cluster. The general
syntax of the DEFINE CLUSTER command is:
+------------------------------------------------------------------------+
¦ DEFINE ¦ CLUSTER ¦
¦ ¦ (NAME(entryname) ¦
¦ ¦ [CYLINDERS(primary] secondary])| ¦
¦ ¦ RECORDS(primary[ secondary])| ¦
¦ ¦ TRACKS(primary[ secondary])} ¦
¦ ¦ VOLUMES(volser[ volser...]) ¦
¦ ¦ [ATTEMPTS(number|2)] ¦
¦ ¦ [AUTHORIZATION(entrypoint[ string])] ¦
¦ ¦ [BUFFERSPACE(size)] ¦
¦ ¦ [CODE(code)] ¦
¦ ¦ [CONTROLINTERVALSIZE(size)] ¦
¦ ¦ [CONTROLPW(password)] ¦
¦ ¦ [ERASE|NOERASE] ¦
¦ ¦ [EXCEPTIONEXIT(entrypoint)] ¦
¦ ¦ [FILE(ddname)] ¦
¦ ¦ [FREESPACE(CI-percent[ CA-percent]|0 0)] ¦
¦ ¦ [IMBED|NOIMBED] ¦
¦ ¦ [INDEXED|NONINDEXED|NUMBERED] ¦
¦ ¦ [KEYRANGES((lowkey highkey)[(lowkey highkey)...])] ¦
¦ ¦ [KEYS(length offset|64 0)] ¦
¦ ¦ [MASTERPW(password)] ¦
¦ ¦ [MODEL(entryname[/password][ catname[/password]])] ¦
¦ ¦ [ORDERED|UNORDERED] ¦
¦ ¦ [OWNER(ownerid)] ¦
¦ ¦ [READPW(password)] ¦
¦ ¦ [RECORDSIZE(average maximum)] ¦
¦ ¦ [REPLICATE|NOREPLICATE] ¦
¦ ¦ [REUSE|NOREUSE] ¦
¦ ¦ [SHAREOPTIONS(crossregion[ crosssystem]|1 3)] ¦
¦ ¦ [SPANNED|NONSPANNED] ¦
¦ ¦ [SPEED|RECOVERY] ¦
¦ ¦ [TO(date)|FOR(days)] ¦
¦ ¦ [UNIQUE|SUBALLOCATION] ¦
¦ ¦ [UPDATEPW(password)] ¦
¦ ¦ [WRITECHECK|NOWRITECHECK]) ¦
¦ ¦ ¦
¦ ¦ [DATA ¦
¦ ¦ ([ATTEMPTS(number)] ¦
¦ ¦ [AUTHORIZATION(entrypoint[ string])] ¦
¦ ¦ [BUFFERSPACE(size)] ¦
¦ ¦ [CODE(code)] ¦
¦ ¦ [CONTROLINTERVALSIZE(size)] ¦
¦ ¦ [CONTROLPW(password)] ¦
+-----------+------------------------------------------------------------¦
¦ ¦ [CYLINDERS(primary[ secondary])| ¦
¦ ¦ RECORDS(primary[ secondary])| ¦
¦ ¦ TRACKS(primary[ secondary])] ¦
¦ ¦ [ERASE|NOERASE] ¦
¦ ¦ [EXCEPTIONEXIT(entrypoint)] ¦
¦ ¦ [FILE(ddname)] ¦
| ¦ ¦ [FREESPACE(CI-percent[ CA-percent])] ¦
¦ ¦ [KEYRANGES((lowkey highkey)[(lowkey highkey)...])] ¦
¦ ¦ [KEYS(length offset)] ¦
¦ ¦ [MASTERPW(password)] ¦
¦ ¦ [MODEL(entryname[/password][ catname[/password] ¦
¦ ¦ [NAME(entryname)] ¦
¦ ¦ [ORDERED|UNORDERED] ¦
¦ ¦ [OWNER(ownerid)] ¦
¦ ¦ [READPW(password)] ¦
¦ ¦ [RECORDSIZE(average maximum) ¦
¦ ¦ [REUSE|NOREUSE] ¦
¦ ¦ [SHAREOPTIONS(crossregion[ crosssystem])] ¦
¦ ¦ [SPANNED|NONSPANNED] ¦
¦ ¦ [SPEED|RECOVERY] ¦
¦ ¦ [UNIQUE|SUBALLOCATION] ¦
¦ ¦ [UPDATEPW(password)] ¦
¦ ¦ [VOLUMES(volser[ volser...])] ¦
¦ ¦ [WRITECHECK|NOWRITECHECK])] ¦
¦ ¦ ¦
¦ ¦ [INDEX ¦
¦ ¦ ([ATTEMPTS(number)] ¦
¦ ¦ [AUTHORIZATION(entrypoint[ string])] ¦
¦ ¦ [CODE(code)] ¦
¦ ¦ [CONTROLINTERVALSIZE(size)] ¦
¦ ¦ [CONTROLPW(password)] ¦
¦ ¦ [CYLINDERS(primary[ secondary])| ¦
¦ ¦ RECORDS(primary[ secondary])| ¦
¦ ¦ TRACKS(primary[ secondary])] ¦
¦ ¦ [EXCEPTIONEXIT(entrypoint)] ¦
¦ ¦ [FILE(ddname)] ¦
¦ ¦ [IMBED|NOIMBED] ¦
¦ ¦ [MASTERPW(password)] ¦
¦ ¦ [MODEL(entryname[/password][ catname[/password]])] ¦
¦ ¦ [NAME(entryname)] ¦
¦ ¦ [ORDERED|UNORDERED] ¦
¦ ¦ [OWNER(ownerid)] ¦
¦ ¦ [READPW(password)] ¦
¦ ¦ [REPLICATE|NOREPLICATE] ¦
¦ ¦ [REUSE|NOREUSE] ¦
¦ ¦ [SHAREOPTIONS(crossregion[ crosssystem])] ¦
¦ ¦ [UNIQUE|SUBALLOCATION] ¦
¦ ¦ [UPDATEPW(password)] ¦
¦ ¦ [VOLUMES(volser[ volser...])] ¦
¦ ¦ [WRITECHECK|NOWRITECHECK])] ¦
¦ ¦ ¦
¦ ¦ [CATALOG(catname[/password])] ¦
+------------------------------------------------------------------------+
Subtopics
3.7.1 DEFINE CLUSTER Parameters
3.7.2 Data and Index Components of a Cluster
3.7.3 DEFINE CLUSTER Examples
Subtopics
3.7.1.1 Required Parameters
3.7.1.2 Optional Parameters
CLUSTER
specifies that a cluster is to be defined.
Abbreviation: CL
NAME(entryname)
specifies the cluster's entryname or the name of each of its
components. The entryname specified for the cluster as a whole is not
propagated to the cluster's components.
You can define a separate entryname for the cluster, its data
component, and its index component. If no name is specified for the
data and index component, a name is generated. When the cluster, data
component, and index component are individually named, each can be
addressed. For information on system generated names, see DFSMS/MVS
V1R2 Using Data Sets.
Note: A qualified data set name and an unqualified data set name
cannot be placed in the same catalog if the first qualifier of the
qualified name is the same as the unqualified name. For example,
PAYROLL and PAYROLL.DATA cannot exist on the same catalog.
CYLINDERS(primary[ secondary])|
RECORDS(primary[ secondary])|
TRACKS(primary[ secondary])
specifies the amount of space to be allocated to the cluster from the
volume's available space, when UNIQUE is specified, or from the
available space of one of the volume's VSAM data spaces.
If you do not specify the MODEL parameters, you must specify one, and
only one, of the following parameters: CYLINDERS, RECORDS, or TRACKS.
Regardless of the allocation type, the control area (CA) size for the
data set is calculated based on the smaller of the two allocation
quantities (primary or secondary) specified in the define command. A
CA is never greater than a single cylinder, but may be less (that is,
some number of tracks) depending upon the allocation amount and type
used. When tracks or records are specified, the space allocation unit
(the CA size) may be adjusted to one cylinder. This occurs if the
calculated CA size contains more tracks than exist in a single
When multiple volumes are specified for a data set and the KEYRANGES
parameter is not specified for that data set, the following rules and
conditions apply:
The first volume will be defined as the prime volume. The initial
allocation of a data set will be on the prime volume. The
remaining volumes will be defined as candidate volumes.
A data set's primary space allocation (defined for each data set)
is the amount of space initially allocated on both the prime
volume and on any candidate volumes the data set extends to.
A data set's secondary space allocation (if the data set has a
secondary allocation defined) is the amount of space allocated
when the primary space is filled and the data set needs additional
space on the same volume.
parameter of:
When you specify UNIQUE, and the cluster's data space is the first
data space on a volume that belongs to a recoverable catalog, the
equivalent in tracks of one additional cylinder is allocated for the
recovery area data space.
primary
specifies the initial amount of space that is to be allocated to
the cluster.
secondary
specifies the amount of space that is to be allocated each time
the cluster extends, as a secondary extent. When secondary is
specified and the cluster is suballocated, space for the cluster's
data and index components can be expanded to include a maximum of
123 extents.
If the data space that contains all or part of the cluster cannot
be extended because the cluster's secondary allocation amount is
greater than the data space's secondary allocation amount, VSAM
builds a new data space. The new data space's primary and
secondary allocation amounts are equal to the cluster's secondary
allocation amount.
VOLUMES(volser[ volser...])
specifies the volume(s) on which a cluster's components are to have
space.
You may repeat a volume serial number in the list only if you specify
the KEYRANGE parameter. You may want to do this so you will have more
than one key range on the same volume. Even in this case, repetition
is only valid if all duplicate occurrences are used for the primary
allocation of some key range. The VOLUMES parameter interacts with
other DEFINE CLUSTER parameters. You should ensure that the volume(s)
you specify for the cluster is consistent with the cluster's other
attributes:
CATALOG: The data space on the volume must be defined before the
cluster, and the catalog specified must own the volume.
Abbreviation: VOL
ATTEMPTS(number|2)
specifies the maximum number of times the operator can try to enter a
correct password in response to a prompting message. This parameter
only has effect when the entry's master password is not null. A
prompting message is issued only when the user has not already
supplied the appropriate password.
number
can be any number, 0 through 7. If 0 is specified, the operator
is not prompted and is not allowed to enter a password from the
console.
Abbreviation: ATT
AUTHORIZATION(entrypoint[ string])
specifies that a user-security-verification routine (USVR) is
available for additional security verification. When a protected
cluster is accessed and the user supplies a correct password other
than the cluster's master password, the USVR receives control. For
details on the USVR, see DFSMS/MVS V1R2 Installation Exits.
This parameter only has effect when the entry's master password is not
null.
entrypoint
specifies the name of the user's-security-verification routine.
string
specifies information to be passed on to the USVR when it receives
control to verify authorization. The length defined for the
authorization verification record must be from 1 to 256
characters.
Abbreviation: AUTH
BUFFERSPACE(size)
specifies the minimum space to be provided for buffers. The buffer
space size you specify helps VSAM determine the data component's and
index component's control interval size. If BUFFERSPACE is not coded,
VSAM attempts to get enough space to contain two data component
control intervals and, if the data is key sequenced, one index
component control interval.
size
is the amount of space to be provided for buffers. Size can be
expressed in decimal (n), hexadecimal (X'n'), or binary (B'n')
form, but must not exceed 16776704.
The size specified cannot be less than enough space to contain two
data component control intervals and, if the data is key
sequenced, one index control interval. If the specified size is
less than VSAM requires for the buffers needed to run your job,
VSAM terminates your DEFINE and provides an appropriate error
message.
CATALOG(catname[/password])
identifies the catalog in which the cluster is to be defined. For
information about the order in which catalogs are selected, see
"Catalog Selection Order for DEFINE" in topic 1.6.4.
catname
specifies the name of the catalog in which the entry is to be
defined.
password
specifies the catalog's password. If the catalog is password
protected, you must supply the update- or higher-level password.
If no password is specified, VSAM will prompt the operator for the
correct password. Update or higher RACF authority to the catalog
is required.
Abbreviation: CAT
CODE(code)
specifies a code name for the entry being defined. If an attempt is
made to access a password-protected entry without a password, the code
name is used in a prompting message. The code enables the operator to
be prompted for the password without disclosing the name of the entry.
CONTROLINTERVALSIZE(size)
specifies the size of the control interval for the cluster or
component.
The size of the control interval depends on the maximum size of the
data records and the amount of buffer space you provide. If the size
you specify is not an integer multiple of 512 or 2048, VSAM selects
the next higher multiple for your cluster's control interval size.
When you specify a size that is not a multiple of 512 or 2048, VSAM
chooses the next higher multiple.
CONTROLPW(password)
specifies a control password for the entry being defined. When
specified as a parameter of DATA or INDEX, the control password allows
the user's program to open the data component or index component for
read and write processing of the component's control intervals (that
is, the entire control interval, including the data portion of stored
records and the control fields VSAM inserts into stored records and
control intervals).
ERASE|NOERASE
specifies whether the cluster's data component is to be erased when
its entry in the catalog is deleted.
ERASE
specifies that the data component is to be overwritten with binary
zeros when its catalog entry is deleted.
Abbreviation: ERAS
NOERASE
specifies that the data component is not to be overwritten with
binary zeros.
Abbreviation: NERAS
EXCEPTIONEXIT(entrypoint)
specifies the name of a user-written routine, called the exception
exit routine, that receives control when an exceptional I/O error
condition occurs during the transfer of data between your program's
address space and the cluster's direct access storage space.
Abbreviation: EEXT
FILE(ddname)
names the DD statement that identifies the direct access device(s) and
volume(s) that must be available in order for space to be allocated on
the volume(s) specified by the VOLUMES parameter. If more than one
volume is specified, all volumes must be the same device type.
//ddname DD UNIT=(devtype[,unitcount]),
// VOL=SER=(volser1,volser2,volser,...),...
Note: When FILE refers to more than one volume of the same device
type, the DD statement that describes the volumes cannot be a
concatenated DD statement.
FREESPACE(CI-percent[ CA-percent]|0 0)
specifies the percentage of each control interval and control area
that is to be set aside as free space when the cluster is initially
loaded, during a mass insert, and after any split of control intervals
(CI-percent) and control areas (CA-percent). Empty space in the
control interval and control area is available for data records that
are updated and inserted after the cluster is initially loaded. This
parameter applies only to key-sequenced clusters and relative-record
clusters with variable-length records. CI-percent translates into a
number of bytes that is equal to or slightly less than the percentage
value of CI-percent. CA-percent translates into a number of control
intervals that is equal to or less than the percentage value of
CA-percent.
CI-percent and CA-percent must be equal to or less than 100. When you
specify FREESPACE(100 100), one data record is placed in each control
interval used for data and one control interval in each control area
is used for data (that is, one data record is stored in each control
area when the data set is loaded). When no FREESPACE value is coded,
the default specifies that no free space be reserved when the data set
is loaded.
When you define the cluster using the RECORDS parameter, the amount of
free space specified is not taken into consideration in the
calculations to determine primary allocation.
Abbreviation: FSPC
IMBED|NOIMBED
specifies whether the sequence set (the lowest level of the index) is
to be placed with the data component.
IMBED
specifies that the sequence-set record for each control area is
written as many times as it will fit on the first track adjacent
to the control area. If the allocation is less than a cylinder,
one track will be added to the primary and secondary allocation
quantities.
Abbreviation: IMBD
NOIMBED
specifies that the sequence-set record for each control area is
written with the other index records.
Abbreviation: NIMBD
The sequence set records are adjacent to the data control areas,
and only the sequence set records are replicated (IMBED and
NOREPLICATE).
All index records are together, and all index records are
replicated (REPLICATE and NOIMBED).
INDEXED|NONINDEXED|NUMBERED
specifies the type of data organization that the cluster is to have.
If you do not specify the data organization and you also do not
specify the MODEL parameter, your cluster will default to
key-sequenced (indexed).
INDEXED
specifies that the cluster being defined is for key-sequenced
data. If INDEXED is specified, an index component is
automatically defined and cataloged. The data records can be
accessed by key or by relative byte address (RBA).
Abbreviation: IXD
NONINDEXED
specifies that the cluster being defined is for entry-sequenced
data. The data records can be accessed sequentially or by
Abbreviation: NIXD
NUMBERED
specifies that the cluster's data organization is for relative
record data. A relative record cluster is similar to an
entry-sequenced cluster, and has fixed-length or variable-length
records that are stored in slots. The RECORDSIZE parameter
determines if the records are fixed-length or variable-length.
Empty slots hold space for records to be added later. The data
records are accessed by relative record number (slot number).
Abbreviation: NUMD
KEYRANGES((lowkey highkey)
[(lowkey highkey)...])
specifies that portions of key-sequenced data are to be placed on
different volumes. Each portion of the data is called a key range.
This parameter applies only to key-sequenced clusters.
lowkey
specifies the low key of the key range. If lowkey is shorter than
the actual keys, it will be padded on the right with binary zeros.
highkey
specifies the high key of the key range. If highkey is shorter
than the actual keys, it will be padded on the right with binary
ones.
When there are more volumes in the volume serial number list than
there are key ranges, the excess volumes are used for overflow
records from any key range without consideration for key range
boundaries.
When there are fewer volumes in the volume serial number list than
there are key ranges, the excess key ranges are allocated on the
last volume specified, and UNIQUE cannot also be specified.
KEYS: The low key and high key values must not exceed the key
length specified in the KEY parameter. The KEY parameter must be
specified in the same component as the KEYRANGE parameter.
Abbreviation: KRNG
KEYS(length offset|64 0)
specifies information about the prime key field of a key-sequenced
data set's data records. This parameter applies only to key-sequenced
clusters. The default specifies a key field of 64 bytes in length,
beginning at the first byte (byte 0) of each data record.
The key field of the cluster's index is called the prime key to
distinguish it from other keys, called alternate keys. For more
details on how to specify alternate indexes for a cluster, see "DEFINE
ALTERNATEINDEX" in topic 3.6.
length offset
specifies the length of the key and its displacement (in bytes)
from the beginning of the record. The sum of length plus offset
cannot exceed the length of the shortest record. The length of
the key can be 1 to 255 bytes.
MASTERPW(password)
specifies a master password for the entry being defined. The master
password allows all access method services operations against the
cluster entry and its data and index entries, and allows the user's
program to access the cluster's contents without restriction. For
more details on how passwords can be used, see DFSMS/MVS V1R2 Managing
Catalogs.
Abbreviation: MRPW
MODEL(entryname[/password]
[ catname[/password]])
specifies an existing entry to be used as a model for the entry being
defined.
You can use an existing cluster's entry as a model for the attributes
of the cluster being defined. For details about how a model is used,
see DFSMS/MVS V1R2 Managing Catalogs.
You may use some attributes of the model and override others by
explicitly specifying them in the definition of the cluster or
component. If you do not want to add or change any attributes,
specify only the entry type (cluster, data, or index) of the model to
be used and the name of the entry to be defined.
entryname
specifies the name of the cluster or component entry to be used as
a model.
password
specifies a password. If the model entry is password-protected
and it is cataloged in a password-protected catalog, you must
supply the read- or higher-level password of either the model
entry or its catalog. If both passwords are supplied, the
catalog's password is used. Read or higher RACF authority to the
model or catalog is required.
catname
names the model entry's catalog. You identify the catalog that
contains the model entry for either of these cases:
ORDERED|UNORDERED
specifies whether volumes are to be used in the order in which they
are listed in the VOLUMES parameter.
ORDERED
specifies that the volumes are to be used in the order in which
they are listed for the VOLUMES parameter.
When you want each key range to reside on a separate volume, you
can use ORDERED so that the first key range goes on the first
volume, the second key range goes on the second volume, and so on.
Abbreviation: ORD
UNORDERED
specifies no order for the use of the volumes specified in the
VOLUMES parameters.
Abbreviation: UNORD
OWNER(ownerid)
specifies the identification of the cluster's owner.
Note to TSO Users: If the owner is not identified with the OWNER
parameter, the TSO user's userid becomes the ownerid.
READPW(password)
specifies a read password for the entry being defined. The read
password permits read operations against the entry's records.
Abbreviation: RDPW
RECORDSIZE(average maximum|default)
specifies the average and maximum lengths, in bytes, of the records in
the data component. The minimum record size that you can specify is 1
byte.
For nonspanned records, the maximum record size + 7 cannot exceed the
data component's control interval size (that is, the maximum
When you specify a record size that is larger than one control
interval, you must also specify spanned records (SPANNED). The
formula for the maximum record size of spanned records as calculated
by VSAM is as follows:
where:
When your records are fixed length, you can use the following formula
to find a control interval size that contains a whole number (n) of
records:
CISZ = (n x RECSZ) + 10
or
n = (CISZ - 10)
RECSZ
or
n = (CISZ - 4)
(RECSZ + 3)
where:
is a positive integer.
default
when SPANNED is specified, the default is RECORDSIZE(4086 32600).
Otherwise, the default is RECORDSIZE(4089 4089).
Note: When you specify RECORDS, you must ensure the following:
where:
When the SPANNED record size default prevails (32600 bytes), the
secondary allocation quantity should be at least 8 records.
Note also that REPRO and EXPORT will not support data sets with record
sizes greater than 32760.
Abbreviation: RECSZ
REPLICATE|NOREPLICATE
specifies how many times each index record is to be written on a
track.
REPLICATE
specifies that each index record is to be written on a track as
many times as it will fit. With REPLICATE, rotational delay is
reduced and performance is improved. However, the cluster's index
usually requires more direct access device space.
Abbreviation: REPL
NOREPLICATE
specifies that the index records are to be written on a track only
one time.
Abbreviation: NREPL
REUSE|NOREUSE
specifies whether the cluster can be opened again and again as a
reusable cluster.
REUSE
specifies that the cluster can be opened again and again as a
reusable cluster. When a reusable cluster is opened, its
high-used RBA is set to zero if you open it with an access control
block that specifies the RESET attribute.
Abbreviation: RUS
NOREUSE
specifies that the cluster cannot be opened again as a new
cluster.
Abbreviation: NRUS
SHAREOPTIONS(crossregion[ crosssystem]|1 3)
specifies how a component or cluster can be shared among users. For a
description of data set sharing, see DFSMS/MVS V1R2 Using Data Sets.
To ensure integrity, you should be sure that share options specified
at the DATA and INDEX levels are the same.
crossregion
specifies the amount of sharing allowed among regions within the
same system or within multiple systems using global resource
serialization (GRS). Independent job steps in an operating system
or multiple systems using GRS can access a VSAM data set
concurrently. The values that can be specified are:
3 specifies that the data set can be fully shared by any number
of users. With this option, each user is responsible for
maintaining both read and write integrity for the data the
program accesses. User programs that ignore the write
integrity guidelines can cause VSAM program checks, lost or
inaccessible records, irreversible data set failures, and
other unpredictable results. This option places heavy
responsibility on each user sharing the data set.
4 specifies that the data set can be fully shared by any number
of users and buffers used for direct processing are refreshed
for each request. This option requires your program to use
the ENQ and DEQ macros to maintain data integrity while
sharing the data set. Improper use of the ENQ macro can
cause problems similar to those described under SHAREOPTIONS
3. (For information on using ENQ and DEQ, see Authorized
Assembler Services Reference.)
crosssystem
specifies the amount of sharing allowed among systems. Job steps
of two or more operating systems can gain access to the same VSAM
data set regardless of the disposition specified in each step's DD
statement for the data set. However, if you are using GRS across
systems or JES3, the data set may or may not be shared depending
on the disposition of the system.
1 Reserved
2 Reserved
3 specifies that the data set can be fully shared. With this
option, each user is responsible for maintaining both read
and write integrity for the data that user's program
accesses.
Each GET request results in all the user's input buffers being
refreshed. The contents of each data and index buffer being used
by the user's program are retrieved from the VSAM cluster's direct
access device.
Abbreviation: SHR
SPANNED|NONSPANNED
specifies whether a data record is allowed to cross control interval
boundaries.
SPANNED
specifies that, if the maximum length of a data record (as
specified with RECORDSIZE) is larger than a control interval, the
record will be contained on more than one control interval. This
allows VSAM to select a control interval size that is optimum for
the direct access device.
Abbreviation: SPND
NONSPANNED
specifies that the record must be contained in one control
interval. VSAM will select a control interval size that
accommodates your largest record.
Abbreviation: NSPND
SPEED|RECOVERY
specifies whether storage allocated to the data component is to be
preformatted before records are inserted. SPEED|RECOVERY applies only
to initial loading.
When you specify RECOVERY, your initial load takes longer because the
control areas are written initially with end-of-file indicators and
again with your data records. When you specify SPEED, your initial
load is quicker.
SPEED
specifies that the data component's space is not preformatted.
Its space might contain data records from a previous use of the
space, or it might contain binary zeros (its contents are
unpredictable).
If the initial load fails, you must load the data records again
from the beginning, because VSAM is unable to determine where your
last correctly written record is. (VSAM cannot find a valid
end-of-file indicator when it searches your data records.)
RECOVERY
specifies that the data component's control areas are written with
records that indicate end of file. When a data record is written
(during the initial load) into a control interval, it is always
followed by a record that identifies the record that has just been
written as the last record in the cluster.
If the initial load fails, you can resume loading data records
after the last correctly written data record, because an
end-of-file indicator identifies it as the last record.
Abbreviation: RCVY
TO(date)|FOR(days)
specifies the retention period for the cluster being defined. If
neither TO nor FOR is specified, the cluster can be deleted at any
time.
TO(date)
specifies the date, in the form yyddd, where yy is the year and
ddd is the number (001 through 365) of the day through which the
cluster being defined is to be kept.
FOR(days)
specifies the number of days for which the cluster being defined
is to be kept. The maximum number that can be specified is 9999.
UNIQUE|SUBALLOCATION
specifies whether the cluster's components are allocated an amount of
space from the volume's available space (UNIQUE) or from a VSAM data
space's available space (SUBALLOCATION).
UNIQUE
specifies that a VSAM data space is to be built and assigned
exclusively to each component of the cluster. The data space is
created when the cluster is defined. The cluster's volume(s) must
be mounted. VSAM builds a DSCB in the volume's table of contents
(VTOC) to describe the data space. The name of the data space,
which is the same as the component's name, is put in the DSCB. A
subentry is added to the volume entry (in the VSAM catalog) to
describe the VSAM data space.
Abbreviation: UNQ
SUBALLOCATION
specifies that space from one of the VSAM data spaces on the
volume is assigned to the cluster's components.
Abbreviation: SUBAL
REUSE: You cannot specify REUSE when you specify UNIQUE for a
cluster or its components.
VOLUMES: When UNIQUE is not specified, VSAM data space must exist
on the volume that is to contain the cluster's component. When
UNIQUE is specified, and more than one volume is specified, VSAM
must already own all the volumes except the first. If there is no
VSAM space on a volume, you must execute a DEFINE SPACE CANDIDATE
before your DEFINE UNIQUE.
UPDATEPW(password)
specifies an update password for the entry being defined. The update
password permits read and write operations against the entry's
records.
If a read password is the only password specified for the object (that
is, it is the highest-level password), it propagates upward and
becomes the password for all higher levels. If you specify a
Abbreviation: UPDPW
WRITECHECK|NOWRITECHECK
specifies whether the cluster or component is to be checked by a
machine action called write check when a record is written into it.
WRITECHECK
specifies that a record is written and then read, without data
transfer, to test for the data check condition.
Abbreviation: WCK
NOWRITECHECK
specifies that the cluster or component is not to be checked by a
write check.
Abbreviation: NWCK
Attributes can be specified separately for the cluster's data and index
components. The DATA and INDEX parameters are listed at the beginning of
this section. These parameters are described in detail as parameters of
the cluster as a whole. Restrictions are noted with each parameter's
description.
Subtopics
3.7.3.1 Define a Key-Sequenced Cluster Specifying Data and Index Parameters:
Example 1
3.7.3.2 Define a Key-Sequenced Cluster and an Entry-Sequenced Cluster: Example 2
3.7.3.3 Define a Key-Sequenced Cluster (in a Unique Data Space) in a VSAM
Catalog: Example 3
3.7.3.4 Define a Relative Record Cluster in a Catalog: Example 4
3.7.3.5 Define a Reusable Entry-Sequenced Cluster in a Catalog: Example 5
3.7.3.6 Define a Key-Sequenced Cluster in a Catalog: Example 6
3.7.3.7 Define an Entry-Sequenced Cluster Using a Model: Example 7
A key sequenced cluster is defined. The DATA and INDEX parameters are
specified and the cluster's data and index components are explicitly
named. This example assumes that, if the cluster is being defined in a
VSAM catalog, a VSAM data space exists on volume VSER02. It also assumes
that an alias name D40 has been defined for the catalog D27UCAT1. This
naming convention causes D40.MYDATA to be cataloged in D27UCAT1.
The DEFINE CLUSTER command builds a cluster entry, a data entry, and an
index entry to define the key sequenced cluster D40.MYDATA. The
parameters specified for the cluster as a whole are:
KEYS specifies that the length of the key field is 15 bytes and that
the key field begins in the first byte (byte 0) of each data record.
for I/O buffers. A large area for I/O buffers can help to improve
access time with certain types of processing. For example, with
direct processing if the high-level index can be kept in virtual
storage, access time is reduced. With sequential processing, if
enough I/O buffers are available, VSAM can perform a read-ahead
thereby reducing system overhead and minimizing rotational delay.
FREESPACE specifies that 20% of each control interval and 10% of each
control area are to be left free when records are loaded into the
cluster. After the cluster's records are loaded, the free space can
be used to contain new records.
CATALOG specifies the catalog name and its update password. This
parameter would not be necessary if (1) the catalog was not password
protected, and (2) D40 was defined as the catalog's alias.
In this example, two VSAM clusters are defined. The first DEFINE command
defines a key sequenced VSAM cluster, D40.EXAMPLE.KSDS1. The second
DEFINE command defines an entry-sequenced VSAM cluster, D50.EXAMPLE.ESDS1.
In both examples, it is assumed that alias names, D40 and D50, have been
defined for user catalogs D27UCAT1 and D27UCAT2, respectively, and that
neither user catalog is password-protected. This example assumes that
VSAM data space that can contain the data sets already exists on volumes
VSER02 and VSER03.
The first DEFINE command builds a cluster entry, a data entry, and an
index entry to define the key sequenced cluster D40.EXAMPLE.KSDS1. Its
parameters are:
The second DEFINE command builds a cluster entry and a data entry to
define an entry-sequenced cluster, D50.EXAMPLE.ESDS1. Its parameters are:
The DEFINE CLUSTER command builds a cluster entry, a data entry, and an
index entry to define the key sequenced cluster ENTRY. The DEFINE CLUSTER
command also allocates a data space and allocates it for the cluster's
exclusive use. The command's parameters are:
KEYS specifies that the length of the key field is 10 bytes and that
the key field begins in the 11th byte (byte 10) of each data record.
CATALOG specifies the name of the catalog into which the cluster will
The DEFINE CLUSTER command builds a cluster entry and a data entry to
define the relative record cluster, EXAMPLE.RRDS1 in the user catalog.
The DEFINE CLUSTER command also obtains space for the cluster from the
VSAM data space on volume VSER01, and allocates 10 tracks for the
cluster's use. The command's parameters are:
TRACKS specifies that ten tracks are to be allocated for the cluster.
When the cluster is extended, it is to be extended in increments of 5
tracks.
The DEFINE CLUSTER command builds a cluster entry and a data entry to
define the entry-sequenced cluster, EXAMPLE.ESDS2. The DEFINE CLUSTER
command also obtains space for the cluster from one of the Class 1 VSAM
data spaces on volume VSER03, and assigns ten tracks for the cluster's
use. VSER03 does not have to be mounted or allocated at this time. The
command's parameters are:
MASTERPW and UPDATEPW specifies the master password, ESD2MRPW, and the
update password, ESD2UPPW, for the cluster.
The DEFINE CLUSTER command builds a cluster entry, a data entry, and an
index entry to define the key sequenced cluster, EXAMPLE.KSDS2. The
DEFINE CLUSTER command also obtains space for the cluster from one of the
VSAM data spaces on volume VSER01, and allocates space separately for the
cluster's data and index components. Because the cluster is being defined
into a recoverable catalog, an attempt will be made to dynamically
allocate the catalog recovery area on VSER01.
The command's parameters that apply only to the cluster's data component
are enclosed in the parentheses following the DATA keyword:
KEYS specifies the location and length of the key field in each data
record. The key field is 6 bytes long and begins in the 5th byte
(byte 4) of each data record.
The command's parameters that apply only to the cluster's index component
are enclosed in the parentheses following the INDEX keyword:
IMBED specifies that the index's sequence set records are to be placed
in the data component's control areas (the sequence set records will
be replicated automatically).
The second DEFINE CLUSTER command uses the attributes and specifications
of the previously defined cluster, GENERIC.A.BAKER, as a model for the
cluster still to be defined, GENERIC.B.BAKER. Its parameters are:
+------------------------------------------------------------------------+
¦ DEFINE ¦ GENERATIONDATAGROUP ¦
¦ ¦ (NAME(entryname) ¦
¦ ¦ LIMIT(limit) ¦
¦ ¦ [EMPTY|NOEMPTY] ¦
¦ ¦ [OWNER(ownerid)] ¦
¦ ¦ [SCRATCH|NOSCRATCH] ¦
¦ ¦ [TO(date)|FOR(days)]) ¦
¦ ¦ ¦
¦ ¦ [CATALOG(catname[/password])] ¦
+------------------------------------------------------------------------+
Subtopics
3.8.1 DEFINE GENERATIONDATAGROUP Parameters
3.8.2 DEFINE GENERATIONDATAGROUP Example
Subtopics
3.8.1.1 Required Parameters
3.8.1.2 Optional Parameters
GENERATIONDATAGROUP
specifies that a generation data group entry is to be defined.
Abbreviation: GDG
NAME(entryname)
specifies the name of the generation data group that is being defined.
LIMIT(limit)
specifies the maximum number, from 1 to 255, of generation data sets
that can be associated with the generation data group to be defined.
Abbreviation: LIM
CATALOG(catname[/password])
identifies the catalog in which the generation data group is to be
defined. If the catalog's volume is physically mounted, it is
dynamically allocated. The volume must be mounted as permanently
resident or reserved. For information about the order in which a
catalog is selected when the catalog's name is not specified, see
"Catalog Selection Order for DEFINE" in topic 1.6.4.
catname
specifies the name of the catalog.
password
specifies the catalog's password. If the catalog is password
protected, you must supply the update- or higher-level password.
Update or higher RACF authority to the catalog is required.
Abbreviation: CAT
EMPTY|NOEMPTY
specifies what action is to be taken when the maximum number of
generation data sets for the generation data group has been reached
and another generation data set is to be cataloged. The disposition
of the data set's DSCB in the volume's VTOC is determined with the
SCRATCH|NOSCRATCH parameter.
EMPTY
specifies that all the generation data sets are to be uncataloged
when the maximum is reached (each data set's non-VSAM entry is
automatically deleted from the catalog).
Abbreviation: EMP
NOEMPTY
specifies that only the oldest generation data set is to be
uncataloged when the maximum is reached.
Abbreviation: NEMP
OWNER(ownerid)
identifies the generation data set's owner.
Note to TSO users: If the owner is not identified with the OWNER
parameter, the TSO userid is the default ownerid.
SCRATCH|NOSCRATCH
specifies whether a generation data set's DSCB is to be deleted from
the volume's VTOC when the data set is uncataloged (that is, when its
entry is deleted from the catalog automatically, as described under
EMPTY|NOEMPTY, or explicitly, as a result of a user issued DELETE
request). You can override the SCRATCH|NOSCRATCH attribute when
issuing the DELETE command.
SCRATCH
specifies that the generation data set's DSCB is to be deleted
from the volume's VTOC when the generation data set is
uncataloged. Direct access device space management (DADSM)
removes the data set's DSCB from the VTOC, erases the data set's
space on the volume, and makes the space available to other system
users. The generation data set ceases to exist.
Abbreviation: SCR
NOSCRATCH
specifies that the generation data set's DSCB is not to be removed
from the volume's VTOC when the generation data set is
uncataloged. The data set's DSCB in the volume's VTOC is left
intact and can be used to locate the data set. However, your
program can process the data set as it processes any other
non-VSAM data sets--that is, by using a JCL DD statement to
describe the data set and allocate it.
Abbreviation: NSCR
TO(date)|FOR(days)
specifies the retention period for the generation data group being
defined.
TO(date)
specifies the date, in the form yyddd, where yy is the year and
ddd is the number (001 through 365) of the day through which the
generation data group being defined is to be kept.
FOR(days)
specifies the number of days for which the generation data group
being defined is to be kept. The maximum number that can be
specified is 9999. If the number specified is 0 through 1830, the
generation data group is retained for the number of days
specified; if the number is between 1831 and 9999, the generation
data group is retained through the year 1999. If neither TO nor
FOR is specified, the generation data group can be deleted at any
time.
Subtopics
3.8.2.1 Define a Generation Data Group and a Generation Data Set Within It
3.8.2.1 Define a Generation Data Group and a Generation Data Set Within It
GDGMOD DD, which describes the generation data group. When the
scheduler processes the DD statement, no space is allocated to GDG01.
The model DSCB must exist on the generation data group's catalog
volume.
NAME names the generation data group, GDG01. Each generation data set
in the group will have the name GDG01.GxxxxVyy, where "xxxx" is the
generation number and "yy" is the version number.
EMPTY specifies that all data sets in the group are to be uncataloged
by VSAM when the group reaches the maximum number of data sets (as
specified by the LIMIT parameter) and one more generation data set is
added to the group.
LIMIT specifies that the maximum number of generation data sets in the
group is 255. The LIMIT parameter is required.
The DEFINE NONVSAM command defines a catalog entry for a non-VSAM data
set. The syntax of this command is:
+------------------------------------------------------------------------+
¦ DEFINE ¦ NONVSAM ¦
¦ ¦ (NAME(entryname) ¦
¦ ¦ DEVICETYPES(devtype[ devtype...]) ¦
¦ ¦ VOLUMES(volser[ volser...]) ¦
¦ ¦ [FILESEQUENCENUMBERS(number[ number...])] ¦
¦ ¦ [OWNER(ownerid)] ¦
¦ ¦ [TO(date)|FOR(days)]) ¦
¦ ¦ ¦
¦ ¦ [CATALOG(catname[/password])] ¦
+------------------------------------------------------------------------+
Subtopics
3.9.1 DEFINE NONVSAM Parameters
3.9.2 DEFINE NONVSAM Example
Subtopics
3.9.1.1 Required Parameters
3.9.1.2 Optional Parameters
NONVSAM
specifies that a non-VSAM data set is to be defined.
Abbreviation: NVSAM
NAME(entryname)
names the non-VSAM data set being defined. The entryname is the name
that appears in the catalog; it is the name used in all future
references to the data set. The entryname must be unique within the
catalog in which it is defined.
You identify a generation data set with its generation data group name
followed by the data set's generation and version numbers
(GDGname.GxxxxVyy). Relative generation numbers (that is,
GDGname(+1)) cannot be used with the entryname when you use the DEFINE
NONVSAM command to catalog a generation data set and attach it to a
generation data group. If the containing catalog is RACF defined,
then the update or higher RACF authority to the generation data group
is required.
DEVICETYPES(devtype[ devtype...])
specifies the device types of the volumes containing the non-VSAM
data set being defined. If the non-VSAM data set resides on
different device types, the device types must be specified in the
same order as the volume serial numbers listed in the VOLUMES
parameter.
The data set was cataloged on a system not defined with the
Hardware Configuration Definition(*)(HCD), but used on a
system that is defined with HCD.
Abbreviation: DEVT
VOLUMES(volser[ volser...])
specifies the volumes to contain the non-VSAM data set.
If the data set resides on magnetic tape and more than one file
belongs to the data set on a single tape volume, you must repeat the
volume's serial number to maintain a one-to-one correspondence between
the volume serial numbers and the file sequence numbers.
Abbreviation: VOL
CATALOG(catname[/password])
identifies the catalog in which the non-VSAM data set is to be
defined. See "Catalog Selection Order for DEFINE" in topic 1.6.4.
for the order in which a catalog is selected when the catalog's name
is not specified,
catname
specifies the name of the catalog in which the entry is to be
defined.
password
specifies the catalog's password. If the catalog is password
protected, you must supply the update- or higher-level password.
Update or higher RACF authority to the catalog is required.
Abbreviation: CAT
FILESEQUENCENUMBERS(number[ number...])
specifies the file sequence number of the non-VSAM data set being
defined. This number indicates the position of the file being defined
with respect to other files of the tape. If the data set spans
volumes, the file sequence number on each volume may be specified.
The numbers must be specified in the same order as the volumes in the
VOLUMES parameter. Multivolume tape data sets are normally the first
file on each volume after the first volume.
Abbreviation: FSEQN
OWNER(ownerid)
identifies the owner of the non-VSAM data set.
Note to TSO users: If OWNER is not specified, the TSO userid is the
default ownerid.
TO(date)|FOR(days)
specifies the retention period for the non-VSAM data set being
defined. The non-VSAM data set is not automatically deleted when the
expiration date is reached. When you do not specify a retention
period, the non-VSAM data set can be deleted at any time. The
expiration date will be placed in the catalog, but not in the format-1
DSCB.
TO(date)
specifies the date, in the form yyddd, where yy is the year and
ddd is the Julian date (001, for January 1, through 365, for
December 31), through which the non-VSAM data set is to be kept
before it is allowed to be deleted.
FOR(days)
specifies the number of days for which the non-VSAM data set is to
be kept before it is allowed to be deleted. The maximum number
that can be specified for days is 9999. If the number specified
is 0 through 1830, the retention period is the number of days
Subtopics
3.9.2.1 Define a Non-VSAM Data Set
Two existing non-VSAM data sets are defined in a catalog, USERCAT4. The
DEFINE NONVSAM command cannot be used to create a new non-VSAM data set
because the command does not allocate space.
VOLUMES specifies the volume that contains the non-VSAM data sets,
VSER02.
The DEFINE PAGESPACE command defines an entry for a page space data set.
The syntax of this command is:
+------------------------------------------------------------------------+
¦ DEFINE ¦ PAGESPACE ¦
¦ ¦ (NAME(entryname) ¦
¦ ¦ {CYLINDERS(primary)| ¦
¦ ¦ RECORDS(primary)| ¦
¦ ¦ TRACKS(primary)} ¦
¦ ¦ VOLUME(volser) ¦
¦ ¦ [ATTEMPTS(number|2)] ¦
¦ ¦ [AUTHORIZATION(entrypoint[ string])] ¦
¦ ¦ [CODE(code)] ¦
¦ ¦ [CONTROLPW(password)] ¦
¦ ¦ [FILE(ddname)] ¦
¦ ¦ [MASTERPW(password)] ¦
¦ ¦ [MODEL(entryname[/password] ¦
¦ ¦ [ catname[/password]])] ¦
¦ ¦ [OWNER(ownerid)] ¦
¦ ¦ [READPW(password)] ¦
¦ ¦ [SWAP|NOSWAP] ¦
¦ ¦ [TO(date)|FOR(days)] ¦
¦ ¦ [UNIQUE|SUBALLOCATION] ¦
¦ ¦ [UPDATEPW(password)]) ¦
¦ ¦ ¦
¦ ¦ [CATALOG(catname[/password])] ¦
+------------------------------------------------------------------------+
Subtopics
3.10.1 DEFINE PAGESPACE Parameters
3.10.2 DEFINE PAGESPACE Examples
Subtopics
3.10.1.1 Required Parameters
3.10.1.2 Optional Parameters
PAGESPACE
specifies that a page space is to be defined.
Abbreviation: PGSPC
NAME(entryname)
specifies the name of the page space being defined.
CYLINDERS(primary)|
RECORDS(primary)|
TRACKS(primary)
specifies the amount of space that is to be allocated by tracks,
cylinders, or number of records. If RECORDS or TRACKS is specified,
the quantity specified is rounded up to the nearest cylinder and the
space is allocated in cylinders.
If you do not specify the MODEL parameter, you must specify one, and
only one, of the following parameters: CYLINDERS, RECORDS, or TRACKS.
When you specify UNIQUE, and the page space's data space is the first
data space on the volume that belongs to a recoverable catalog, an
additional amount (the equivalent of one cylinder) is allocated for
the recovery area data space.
primary
specifies the amount of space that is to be allocated to the page
space. After the primary extent is full, the page space is full.
The page space cannot extend onto secondary extents. The maximum
number of paging slots for each page space is 16M.
VOLUMES(volser)
specifies the volume that contains the page space.
Unless you specify the MODEL parameter, you must specify the VOLUMES
parameter.
Abbreviation: VOL
CATALOG(catname[/password])
specifies the name and password of the catalog in which the page space
is to be defined.
When the CATALOG parameter identifies a user catalog, you must also
supply a STEPCAT or JOBCAT DD statement to describe and allocate the
user catalog. For information about the order in which catalogs are
selected, see "Catalog Selection Order for DEFINE" in topic 1.6.4.
catname
specifies the name of the catalog.
password
specifies a password. If the catalog is password-protected, you
must supply the catalog's update- or higher-level password. If no
password is specified, VSAM may ask the operator or TSO terminal
user for the correct password. Update or higher RACF authority to
the catalog is required.
Abbreviation: CAT
ATTEMPTS(number|2)
specifies the maximum number of times the operator or TSO terminal
user can try to enter a correct password in response to a prompting
message. A prompting message is issued only when the user has not
already supplied the appropriate password. When you define a page
space, you should specify ATTEMPTS(0), so that the operator is not
prompted and is not allowed to enter a password from the console.
This parameter only has effect when the entry's master password is not
null.
number
can be any number from 0 to 7.
Abbreviation: ATT
AUTHORIZATION(entrypoint[ string])
specifies that a user-security-verification routine (USVR) is
available for additional security verification. When a protected page
space is accessed and the user supplies a correct password other than
the page space's master password, the USVR receives control. For
details on the USVR, see DFSMS/MVS V1R2 Installation Exits.
This parameter only has effect when the entry's master password is not
null.
entrypoint
specifies the name of the user's-security-verification routine.
string
specifies information to be passed on to the USVR when it receives
control to verify authorization. The length defined for the
authorization verification record must be from 1 to 256
characters.
Abbreviation: AUTH
CODE(code)
specifies a code name for the page space. If an attempt is made to
access a password-protected entry without a password, the code name is
used in a prompting message; the code enables the operator or TSO
terminal user to be prompted for the password without disclosing the
name of the entry. If code is not specified and an attempt is made to
access a page space entry that is password-protected without supplying
a password, the operator or TSO terminal user will be prompted with
the name of the entry.
CONTROLPW(password)
specifies a control-level password for the page space. Because the
page space is a system data set, it cannot be opened or used by a
user's program. If a read or update password is the only password
specified for the page space, it (the highest-level password)
propagates upward and becomes the password for all higher unspecified
levels.
The passwords are cataloged in both the page space entry and its data
component's entry.
Abbreviation: CTLPW
FILE(ddname)
specifies the name of the DD statement that identifies the device and
volume to be allocated to the page space.
MASTERPW(password)
specifies a master password for the page space. The master password
allows all operations against the page space entry. The
AUTHORIZATION, CODE, and ATTEMPTS parameters have no effect unless the
entry has a master password associated with it. If MASTERPW is not
The passwords are cataloged in both the page space entry and its data
component's entry. The system automatically prevents users from
accessing page spaces and their data components.
Abbreviation: MRPW
MODEL(entryname[/password]
[ catname[/password]])
specifies that an existing page space entry is to be used as a model
for the entry being defined. It is possible to use an already defined
page space as a model for another page space. When one entry is used
as a model for another, its attributes are copied as the new entry is
defined.
You may use some attributes of the model and override others by
explicitly specifying them in the definition of the page space. If
you do not want to add or change any attributes, specify only the
entry type (page space) of the model to be used and the name of the
entry to be defined.
entryname
specifies the name of the page space entry to be used as a model.
password
specifies a password. If the entry to be used as a model is
password-protected and is cataloged in a password-protected
catalog, a password is required.
catname
specifies the name of the catalog in which the entry to be used as
a model is defined. You identify the catalog that contains the
model entry for either of these cases:
OWNER(ownerid)
specifies the identification of the owner of the page space.
READPW(password)
specifies a read-level password for the page space. Because the page
space is a system data set, it cannot be opened or used by a user's
program. The passwords are cataloged in both the page space entry and
its data component's entry. The system automatically prevents users
from accessing page spaces and their data components.
Abbreviation: RDPW
SWAP|NOSWAP
specifies whether page space will be defined for local system queue
area (LSQA) pages or for pageable private area pages. (Auxiliary
storage management separates private area address space pages into
LSQA pages and pageable private area pages.)
SWAP
specifies that the page space is a high-speed data set used during
a swap operation to store and retrieve the set of LSQA pages owned
by an address space.
NOSWAP
indicates that the page space is a conventional page space used to
record pageable private area pages.
Abbreviation: NSWAP
TO(date)|FOR(days)
specifies the retention period for the page space. If neither TO nor
FOR is specified, the page space can be deleted at any time.
TO(date)
specifies the date, in the form yyddd, where yy is the year and
ddd is the number (001 through 365) of the day through which the
cluster being defined is to be kept.
FOR(days)
specifies the number of days for which the page space is to be
kept. The maximum number that can be specified is 9999. If the
number specified is 0 through 1830, the page space is retained for
the number of days specified; if the number is between 1831 and
9999, the page space is retained through the year 1999.
UNIQUE|SUBALLOCATION
specifies whether the page space is allocated an amount of space from
the volume's available space (UNIQUE) or from a previously defined
VSAM data space (SUBALLOCATION).
UNIQUE
specifies that the page space is to be allocated a VSAM data space
of its own. VSAM generates a name for the data space and builds a
format-1 DSCB in the volume's VTOC to describe it.
page space data sets. This will cause VSAM to allocate a single
nonshared data space for the page data set. Space from another
data space will not be used, eliminating one of the possibilities
for multiple extent data sets that will cause auxiliary storage
management performance degradation.
Abbreviation: UNQ
SUBALLOCATION
specifies that the name of the data space, not of the page space,
is to appear in the VTOC. A data space must have been defined on
the volume on which the page space is defined.
Abbreviation: SUBAL
UPDATEPW(password)
specifies an update-level password for the page space. Because the
page space is a system data set, it cannot be opened or used by a
user's program.
If a read password is the only password specified for the page space
(that is, it is the highest-level password), it propagates upward and
becomes the password for all higher levels. If you specify a
higher-level password and do not specify an update password, the
update password is null.
The passwords are cataloged in both the page space entry and its data
component's entry. The system automatically prevents users from
accessing page spaces and their data components.
Abbreviation: UPDPW
Subtopics
3.10.2.1 Define a NOSWAP Page Space: Example 1
3.10.2.2 Define a SWAP Page Space in a Catalog: Example 2
DEFINE PAGESPACE -
(NAME(SYS1.PAGE2) -
CYLINDERS(10) -
VOLUMES(VSER05) -
CONTROLPW(PASSWD1) -
UPDATEPW(PASSWD2) -
READPW(PASSWD3))
/*
UPDATEPW specifies the update password for the page space is PASSWD2.
READPW specifies the read password for the page space is PASSWD3.
The page space defaults to UNIQUE (a new data space will be created for
its exclusive use), and NOSWAP.
DEFINE PAGESPACE -
(NAME(SYS1.PAGE1) -
CYLINDERS(10) -
VOLUMES(VSER05) -
SWAP -
CONTROLPW(PASSWD1) -
UPDATEPW(PASSWD2) -
READPW(PASSWD3))
/*
NAME specifies the name for the page space: SYS1.PAGE1. Because the
page space is unique, the page space's name is put into the DSCB (in
the volume's VTOC) that describes the space allocated to the page
space.
SWAP specifies the page space will be used to store local system queue
area (LSQA) pages.
CONTROLPW specifies the control password (PASSWD1) for the page space.
UPDATEPW specifies the update password (PASSWD2) for the page space.
READPW specifies the read password (PASSWD3) for the page space.
The DEFINE PATH command defines a path directly over a base cluster or
over an alternate index and its related base cluster. The syntax of this
command is:
+------------------------------------------------------------------------+
¦ DEFINE ¦ PATH ¦
¦ ¦ (NAME(entryname) ¦
¦ ¦ PATHENTRY(entryname[/password]) ¦
¦ ¦ [ATTEMPTS(number|2)] ¦
¦ ¦ [AUTHORIZATION(entrypoint[ string])] ¦
¦ ¦ [CODE(code)] ¦
¦ ¦ [CONTROLPW(password)] ¦
¦ ¦ [FILE(ddname)] ¦
¦ ¦ [MASTERPW(password)] ¦
¦ ¦ [MODEL(entryname[/password] ¦
¦ ¦ [ catname[/password]])] ¦
¦ ¦ [OWNER(ownerid)] ¦
¦ ¦ [READPW(password)] ¦
¦ ¦ [TO(date)|FOR(days)] ¦
¦ ¦ [UPDATE|NOUPDATE] ¦
¦ ¦ [UPDATEPW(password)]) ¦
¦ ¦ ¦
¦ ¦ [CATALOG(catname[/password])] ¦
+------------------------------------------------------------------------+
Subtopics
3.11.1 DEFINE PATH Parameters
3.11.2 DEFINE PATH Example
Subtopics
3.11.1.1 Required Parameters
3.11.1.2 Optional Parameters
PATH
specifies that a path is to be defined.
NAME(entryname)
specifies the path's name.
PATHENTRY(entryname[/password])
when the path consists of an alternate index and its base clusters,
entryname identifies the alternate index entry. When the path is
opened to process data records, both the alternate index and the base
cluster are opened.
password
If the cluster or alternate index entry is password-protected, you
must supply the entry's master password. When you identify the
catalog with the CATALOG parameter, you can supply the catalog's
master password instead of the entry's password. Alter RACF
authority to the cluster, alternate index entry or catalog is
required.
Abbreviation: PENT
ATTEMPTS(number|2)
specifies the maximum number of times the operator can try to enter a
correct password in response to a prompting message. This parameter
only has effect when the path's master password is not null. A
prompting message is issued only when the user has not already
supplied the appropriate password. number is an integer from 0 to 7.
Abbreviation: ATT
AUTHORIZATION(entrypoint[ string])
specifies that a user-security-verification routine (USVR) is
available for additional security verification. When a protected path
is accessed and the user supplies a correct password other than the
cluster's master password, the USVR receives control. For details on
the USVR, see DFSMS/MVS V1R2 Installation Exits.
This parameter only has effect when the path's master password is not
null.
entrypoint
specifies the name of the USVR.
string
specifies information to be passed on to the USVR when it receives
control to verify authorization. The length defined for the
authorization verification record must be from 1 to 256
characters.
Abbreviation: AUTH
CATALOG(catname[/password])
identifies the catalog that contains the entry of the cluster or
alternate index named in the PATHENTRY parameter. For information
about the order in which a catalog is selected if the catalog's name
is not specified, see "Catalog Selection Order for DEFINE" in
topic 1.6.4.
catname
specifies the catalog's name.
password
specifies the catalog's master password. Alter RACF authority to
the catalog is required.
Abbreviation: CAT
CODE(code)
specifies a code name for the path.
This parameter only has effect when the path's master password is not
null. When code is not specified, the prompting message identifies
the path with its entryname.
CONTROLPW(password)
specifies a control password for the path. Control interval
processing is not permitted through a path; the control password will
permit read and write operations against the base cluster. If a read
or update password is the only password specified for the object, it
(the highest-level password) propagates upward and becomes the
password for all higher unspecified levels.
Abbreviation: CTLPW
FILE(ddname)
specifies the name of a DD statement that identifies the recovery
volume of the alternate index or cluster named with the PATHENTRY
parameter. FILE is only used when the path is defined in a
recoverable catalog.
The recovery volume is the first volume of the base cluster's index
component when PATHENTRY names a key-sequenced cluster or an alternate
index over a key-sequenced cluster.
The recovery volume is the first volume of the base cluster's data
component when PATHENTRY names an entry-sequenced cluster or an
alternate index over an entry-sequenced cluster.
MASTERPW(password)
specifies a master password for the path. The master password allows
all operations against the path. If the master password is not
specified, the path's highest-level password propagates upward and
becomes the password for all higher levels, including the master
password. If all passwords are null, ATTEMPTS, AUTHORIZATION, and
CODE have no effect until the master password is specified.
Abbreviation: MRPW
MODEL(entryname[/password]
[ catname[/password]])
specifies an existing path entry that is to be used as a model for the
path being defined. You can use some attributes of the model and
override others by explicitly specifying them in the definition of the
path. When you do not want to add or change any attributes, you
specify only the entry type (PATH), the path's name, its alternate
index's or cluster's name, and the model entry's name.
entryname
names the entry to be used as a model. The entryname must name a
path entry.
password
specifies a password. If the model entry is password-protected
and it is cataloged in a password-protected catalog, you must
supply the read (or higher level) password of either the model
entry or its catalog. If you specify both passwords, the
catalog's password is used. Read or higher RACF authority to the
model or catalog is required.
If you are not specifying new protection attributes for the path
(that is, the model's passwords and protection attributes are
being copied), you must supply the master password of either the
model entry or its catalog. Alter RACF authority to the model or
catalog is required.
catname
names the model entry's catalog. You must identify the catalog
that contains the model entry for either of these cases:
OWNER(ownerid)
specifies the identification of the path's owner.
Note to TSO users: If the owner is not identified with the OWNER
parameter, the TSO user's userid becomes the ownerid.
READPW(password)
specifies a read password for the path. The read password permits
read operations against the base cluster's data records.
Abbreviation: RDPW
TO(date)|FOR(days)
specifies the retention period for the path. The path is not
automatically deleted when the expiration date is reached. When a
retention period is not specified, the path can be deleted at any
time.
TO(date)
specifies the date, in the form yyddd, where yy is the year and
ddd is the Julian date (001, for January 1, through 365, for
December 31), through which the path is to be kept before it is
allowed to be deleted.
FOR(days)
specifies the number of days for which the entry is to be kept
before it is allowed to be deleted.
The maximum number that can be specified for days is 9999. If the
number specified is 0 through 1830, the retention period is the
number of days specified. If the number specified is between 1831
and 9999, the retention period is through the year 1999.
UPDATE|NOUPDATE
specifies whether the base cluster's upgrade set is to be allocated
when the path is opened for processing.
UPDATE
specifies that when records in the base cluster are modified or
deleted, or when records are added to the base cluster, each
alternate index in the base cluster's upgrade set is modified to
reflect the change in the cluster's data, just as a key-sequenced
cluster's index is modified each time the cluster's data changes.
Abbreviation: UPD
NOUPDATE
specifies that, when opening the path, the path's base cluster is to
be allocated and the base cluster's upgrade set is not to be
allocated.
You can specify the NOUPDATE attribute for the path even though the
UPGRADE attribute is set for one of the base cluster's alternate
indexes.
When a path points to a base cluster that has a large upgrade set
(that is, many alternate indexes are associated with the base
cluster), and the path is defined with the NOUPDATE attribute, you can
open the path, and consequently the base cluster, and none of the
alternate indexes will be opened.
Abbreviation: NUPD
UPDATEPW(password)
specifies the update password for the path. The update password
permits read and write operations against the base cluster's data
records. If a read password is the only password specified for the
object (that is, it is the highest-level password), it propagates
upward and becomes the password for all higher levels. If you specify
a higher-level password and do not specify an update password, the
update password is null.
Abbreviation: UPDPW
Subtopics
3.11.2.1 Define a Path
The DEFINE PATH command builds a path entry to define the path
EXAMPLE.PATH. Because the path entry is being defined into a recoverable
catalog, a copy of the path entry is placed in the catalog recovery area.
An attempt is made to dynamically allocate the catalog recovery area on
volume VSER01. The command's parameters are:
The DEFINE SPACE command defines a VSAM data space in a VSAM catalog. The
syntax of this command is:
+------------------------------------------------------------------------+
¦ DEFINE ¦ SPACE ¦
¦ ¦ ({CANDIDATE| ¦
¦ ¦ CYLINDERS(primary[ secondary])| ¦
¦ ¦ RECORDS(primary[ secondary]) ¦
¦ ¦ RECORDSIZE(average maximum)| ¦
¦ ¦ TRACKS(primary[ secondary])} ¦
¦ ¦ VOLUMES(volser[ volser...]) ¦
¦ ¦ [FILE(ddname)]) ¦
¦ ¦ ¦
¦ ¦ [CATALOG(catname[/password])] ¦
+------------------------------------------------------------------------+
Subtopics
3.12.1 DEFINE SPACE Parameters
3.12.2 DEFINE SPACE Example
Subtopics
3.12.1.1 Required Parameters
3.12.1.2 Optional Parameters
SPACE
specifies that a data space is to be defined. You can also use the
DEFINE SPACE command to reserve a volume for VSAM's future use.
Abbreviation: SPC
CANDIDATE|
CYLINDERS(primary[ secondary])|
RECORDS(primary[ secondary]) RECORDSIZE(average maximum)|
TRACKS(primary[ secondary])
specifies the volume(s) to be reserved for VSAM's future use or
specifies the amount of space to be allocated in terms of cylinders,
number of records, or tracks.
CANDIDATE
specifies that the volumes listed in the VOLUMES parameter are
reserved for future use by VSAM. An ownership indicator is set in
the volume's table of contents (VTOC). The volumes are reserved
for use by the catalog, but no space is allocated (other than the
primary CRA allocation if the catalog is recoverable). Each
volume so reserved is called a candidate volume. If CANDIDATE is
not specified, you must specify one of the following parameters:
CYLINDERS, TRACKS, or RECORDS.
Abbreviation: CAN
CYLINDERS(primary[ secondary])|
RECORDS(primary[ secondary]) RECORDSIZE(average maximum)|
TRACKS(primary[ secondary])
specifies the amount of space to be allocated in terms of tracks,
cylinders, or number of records.
primary
specifies the initial amount of space (primary extent) to be
allocated to the data space. primary can be expressed in
decimal (n), hexadecimal (X'n'), or binary (B'n') form.
secondary
When the data space is the first data space on a volume that
belongs to a recoverable catalog, the primary amount is increased
by one cylinder.
RECORDSIZE(average maximum)
specifies the average and maximum lengths, in bytes, of the
records.
average and maximum can be any integer value between 1 and 32,761,
expressed in decimal (n), hexadecimal (X'n'), or binary (B'n')
form. When you specify the RECORDS parameter, you must also
specify RECORDSIZE; otherwise, you cannot specify RECORDSIZE.
Abbreviation: RECSZ
VOLUMES(volser[ volser...])
specifies the volumes on which data spaces are to be defined or
volumes to be reserved as candidate volumes for VSAM's future use. If
two or more volumes are specified and an amount of space is specified
(that is, TRACKS, CYLINDERS, or RECORDS and RECORDSIZE is specified)
the amount specified for the primary allocation is allocated on each
volume. The specified volumes must all be of the same device type.
When the volume already has a data space on it, subsequent data spaces
can be defined and must be cataloged in the catalog that owns the
volume. A data space can be defined on a mass storage volume.
Abbreviation: VOL
CATALOG(catname[/password])
identifies the catalog in which the data space is to be defined. The
CATALOG parameter supplies the name and password, when required, of
the catalog that contains the volume entry that describes the volume
on which the data space is to be allocated.
catname
specifies the name of the catalog.
password
specifies a password. If the catalog is password protected, you
must supply the update- or higher-level password. Update or
higher RACF authority to the catalog is required.
Abbreviation: CAT
FILE(ddname)
specifies the name of the DD statement that identifies the device type
and volumes to be used for space allocation. You cannot use
concatenated DD statements to describe more than one volume.
Subtopics
3.12.2.1 Define a Data Space
The data space is to be used to allocate space for VSAM clusters that are
subsequently defined.
Access method services defines the data space and allocates its space on
volume VSER05. The data space is cataloged in D27UCAT1, because a JOBCAT
DD statement is specified. All future data spaces and clusters on volume
VSER05 must also be cataloged in the same catalog. Non-VSAM data sets on
the volume reside in areas that are not allocated to a VSAM data space.
The DEFINE SPACE command defines a VSAM data space. Its parameters are:
VOLUMES specifies the volume serial number of the volume on which the
data space is to be defined, VSER05.
+------------------------------------------------------------------------+
¦ DEFINE ¦ USERCATALOG|MASTERCATALOG ¦
¦ ¦ (NAME(entryname) ¦
¦ ¦ {CYLINDERS(primary[ secondary])| ¦
¦ ¦ RECORDS(primary[ secondary])| ¦
¦ ¦ TRACKS(primary[ secondary])} ¦
¦ ¦ VOLUME(volser) ¦
¦ ¦ [ATTEMPTS(number|2)] ¦
¦ ¦ [AUTHORIZATION(entrypoint[ string])] ¦
¦ ¦ [BUFFERSPACE(size|3072)] ¦
¦ ¦ [CODE(code)] ¦
¦ ¦ [CONTROLPW(password)] ¦
¦ ¦ [FILE(ddname)] ¦
¦ ¦ [MASTERPW(password)] ¦
¦ ¦ [MODEL(entryname[/password][ catname[/password]])] ¦
¦ ¦ [OWNER(ownerid)] ¦
¦ ¦ [READPW(password)] ¦
¦ ¦ [RECOVERABLE|NOTRECOVERABLE] ¦
¦ ¦ [TO(date)|FOR(days)] ¦
¦ ¦ [UPDATEPW(password)] ¦
¦ ¦ [WRITECHECK|NOWRITECHECK]) ¦
¦ ¦ ¦
¦ ¦ [DATA ( ¦
¦ ¦ ([BUFFERSPACE(size)] ¦
¦ ¦ [CYLINDERS(primary[ secondary])| ¦
¦ ¦ RECORDS(primary[ secondary])| ¦
¦ ¦ TRACKS(primary[ secondary])] ¦
¦ ¦ [RECOVERABLE|NOTRECOVERABLE] ¦
¦ ¦ [WRITECHECK|NOWRITECHECK])] ¦
¦ ¦ ¦
¦ ¦ [INDEX ( ¦
¦ ¦ [CYLINDERS(primary[ secondary])| ¦
¦ ¦ RECORDS(primary[ secondary])| ¦
¦ ¦ TRACKS(primary[ secondary])] ¦
¦ ¦ [WRITECHECK|NOWRITECHECK])] ¦
¦ ¦ ¦
¦ ¦ [CATALOG(mastercatname[/password])] ¦
+------------------------------------------------------------------------+
Subtopics
3.13.1 DEFINE USERCATALOG Parameters
3.13.2 Data and Index Components of Usercatalog
3.13.3 DEFINE USERCATALOG Examples
Subtopics
3.13.1.1 Required Parameters
3.13.1.2 Optional Parameters
USERCATALOG|MASTERCATALOG
specifies that a catalog is to be defined.
USERCATALOG
specifies that a user catalog is to be defined. USERCATALOG is
followed by the parameters specified for the catalog as a whole.
Update or higher RACF authority to the master catalog is required.
Abbreviation: UCAT
MASTERCATALOG
This keyword parameter is provided for compatibility with OS/VS1.
Processing is identical for the MASTERCATALOG and USERCATALOG
parameters. When you specify MASTERCATALOG, a user catalog is
created. You can, however, establish a user catalog as a master
catalog at IPL time. For a description of this procedure, see
DFSMS/MVS V1R2 Managing Catalogs.
Abbreviation: MCAT
NAME(entryname)
specifies the name of the catalog being defined.
CYLINDERS(primary[ secondary])|
RECORDS(primary[ secondary])|
TRACKS(primary[ secondary])
specifies the amount of space to be allocated in terms of cylinders,
tracks, or number of records. You can specify the amount of space as
a parameter of USERCATALOG, as a parameter of USERCATALOG and DATA, or
as a parameter of USERCATALOG, DATA, and INDEX.
primary[ secondary]
specify the size of the primary and secondary extents to be
allocated. Once the primary extent is filled, the space can
expand to include a maximum of 13 additional secondary extents if
you have specified a secondary allocation amount. Secondary
allocation should be specified in case the catalog has to be
extended.
VOLUME(volser)
specifies the volume that is to contain the catalog. The volume
cannot be currently owned by any other VSAM catalog.
Abbreviation: VOL
ATTEMPTS(number|2)
specifies the maximum number of times the operator can try to enter a
correct password in response to a prompting message.
number
is an integer from 0 to 7. If 0 is specified, the operator is not
prompted and is not allowed to enter a password from the console.
Abbreviation: ATT
AUTHORIZATION(entrypoint[ string])
specifies that a user-security-verification routine (USVR) is
available for additional security verification. When a protected
catalog is accessed and the user supplies a correct password other
than the catalog's master password, the USVR receives control. For
information on the user-security-verification routine, see DFSMS/MVS
V1R2 Using Data Sets.
entrypoint
specifies the name of the USVR.
string
specifies information to be passed on to the USVR when it receives
control to verify authorization. The length defined for the
authorization verification record must be from 1 to 256
characters.
Abbreviation: AUTH
BUFFERSPACE(size|3072)
specifies the minimum space, in bytes, to be provided for buffers when
using the catalog (one not residing on a 3380). Decimal values you
can specify are 3072, 4096, 5120, 6144, 7168, and 8192.
size
is the amount of space, in bytes, to be provided for buffers.
Size can be expressed in decimal (n), hexadecimal (X'n'), or
binary (B'n') form, but must not exceed 16776704.
Abbreviation: BUFSP
CATALOG(mastercatname[/password])
specifies the name and password of a master catalog. If the master
catalog is password protected, its update- or higher-level password
must be provided in this parameter or in response to prompting.
mastercatname
is the name of the master catalog.
password
specifies the update- or higher-level password of the master
catalog that is required when a user catalog is being defined, if
the master catalog is password protected.
Abbreviation: CAT
CODE(code)
specifies a code name for the catalog being defined. If an attempt is
made to access a password-protected catalog without a password, the
code name is used in a prompting message; the code enables the
operator to be prompted for the password without disclosing the name
of the catalog. If CODE is not specified, the operator will be
prompted with the name of the catalog.
CONTROLPW(password)
specifies a control password for the catalog being defined. The
control password permits the same operations as the update password.
Abbreviation: CTLPW
FILE(ddname)
specifies the name of the DD statement that identifies the device and
volume to be used for the catalog. The DD statement should specify
DISP=OLD to prevent premature space allocation on the volume.
MASTERPW(password)
specifies a master password for the catalog being defined. A catalog
must have a master password in order for VSAM data sets cataloged in
it to be password-protected. The AUTHORIZATION, CODE, and ATTEMPTS
parameters have no effect unless the catalog has a master password
associated with it. The master password allows all operations; it is
required to open the catalog as a data set.
Abbreviation: MRPW
MODEL(entryname[/password][ catname[/password]])
specifies that an existing master or user catalog is to be used as a
model for the user catalog being defined.
When one entry is used as a model for another, its attributes are
copied as the new entry is defined. You may use some attributes of
the model and override others by explicitly specifying them in the
definition of the user catalog.
entryname
specifies the name of the master or user catalog to be used as a
model.
password
specifies a password. If the catalog to be used as a model is
password-protected, a password is required.
catname
specifies the name of the catalog to be used as a model. This
parameter is required if the model catalog is neither the master
catalog nor a catalog identified by a JOBCAT or STEPCAT DD
statement.
OWNER(ownerid)
specifies the identification of the owner of the catalog being
defined.
READPW(password)
specifies a read password for the catalog being defined. The read
password permits the user to list the catalog's entries. (Passwords
and protection attributes are listed only when the master-level
password is supplied.)
Abbreviation: RDPW
RECOVERABLE|NOTRECOVERABLE
specifies whether a catalog recovery space is to be created on each
volume owned by the catalog.
RECOVERABLE
specifies that a catalog recovery space is to be created.
The number of records a CRA can contain varies with the device
type (for example, for a 3330 with 20 control intervals per track,
each extent will accommodate approximately 370 records).
Abbreviation: RVBL
NOTRECOVERABLE
specifies that no catalog recovery space is to be created.
Abbreviation: NRVBL
TO(date)|FOR(days)
specifies the retention period for the catalog being defined. If no
value is coded, the catalog can be deleted whenever it is empty.
TO(date)
specifies the date, in the form yyddd, where yy is the year and
ddd is the number (001 through 365) of the day through which the
catalog being defined is to be kept.
FOR(days)
specifies the number of days for which the catalog being defined
is to be kept. The maximum number that can be specified is 9999.
If the number specified is 0 through 1830, the catalog is retained
for the number of days specified; if the number is between 1831
and 9999, the catalog is retained through the year 1999.
UPDATEPW(password)
specifies an update password for the catalog being defined. The
update password permits entries to be added to the catalog being
defined. The catalog must be update password-protected to prevent
unauthorized users from cataloging data sets.
Abbreviation: UPDPW
WRITECHECK|NOWRITECHECK
specifies whether the catalog is to be checked by a direct access
device operation called write check when a record is written to the
device.
WRITECHECK
specifies that a record is to be written and then read, without
data transfer.
Abbreviation: WCK
NOWRITECHECK
specifies that the catalog is not to be checked by a write check
when a record is written to the device.
Abbreviation: NWCK
Attributes can be specified separately for the catalog's data and index
components. The DATA and INDEX parameters are listed at the beginning of
this section. These parameters are described in detail as parameters of
the catalog as a whole. Restrictions are noted with each parameter's
description.
Subtopics
3.13.3.1 Defining a VSAM User Catalog: Example 1
3.13.3.2 Define a User Catalog Leaving Available Suballocatable Space: Example 2
3.13.3.3 Define a User Catalog Using the MODEL Parameter: Example 3
3.13.3.4 Define a VSAM Recoverable User Catalog: Example 4
A user catalog is defined in this example. The user catalog's data space
is not available to contain other VSAM objects.
DEFINE USERCATALOG( -
NAME(USERCAT3) -
VOLUME(VSER04) -
TRACKS(153 18) )
/*
MASTERPW and UPDATEPW specify master and update passwords for the
catalog: USERMRPW and USERUPPW.
FOR specifies that the user catalog is to be retained for 365 days.
DATA and INDEX specify that VSAM is to allocate 4 cylinders for the
catalog itself. VSAM determines the proportion of space that is
allocated to the catalog's data and index components. The remainder
of the catalog's data space (6 cylinders) is available to contain VSAM
objects that reside in a nonunique data space. If the catalog's data
component is extended, it is to be extended in increments of 1
cylinder. The catalog's index component is never extended.
The user catalog defined previously, D27UCAT1, is used as a model for the
user catalog being defined, D27UCAT2.
MASTERPW and UPDATEPW specify master and update passwords for the
catalog: USERMRPW and USERUPPW.
ATTEMPTS = 2, and
NOWRITECHECK.
MASTERPW and UPDATEPW specify master and update passwords for the
catalog: USERMRPW and USERUPPW.
ATTEMPTS specifies that the operator may be prompted for the correct
password up to three times.
TRACKS specifies that 100 tracks are to be allocated for the user
catalog's data space. No secondary allocation is specified. If
additional VSAM space is required on the volume, it can be explicitly
defined using the DEFINE SPACE command.
You may wish to estimate the amount of space which VSAM will actually
allocate to the catalog to:
3.14 DELETE
The DELETE command deletes catalogs, VSAM data sets, and non-VSAM data
sets. The syntax of this command is:
+------------------------------------------------------------------------+
¦ DELETE ¦ (entryname[/password][ entryname[/password] ...]) ¦
¦ ¦ [ALIAS| ¦
¦ ¦ ALTERNATEINDEX| ¦
¦ ¦ CLUSTER| ¦
¦ ¦ GENERATIONDATAGROUP| ¦
¦ ¦ NONVSAM| ¦
¦ ¦ PAGESPACE| ¦
¦ ¦ PATH| ¦
¦ ¦ SPACE| ¦
¦ ¦ USERCATALOG ¦
¦ ¦ [ERASE|NOERASE] ¦
¦ ¦ [FILE(ddname)] ¦
¦ ¦ [FORCE|NOFORCE] ¦
¦ ¦ [PURGE|NOPURGE] ¦
¦ ¦ [SCRATCH|NOSCRATCH] ¦
¦ ¦ ¦
¦ ¦ [CATALOG(catname[/password])] ¦
+------------------------------------------------------------------------+
Subtopics
3.14.1 DELETE Parameters
3.14.2 DELETE Examples
Subtopics
3.14.1.1 Required Parameters
3.14.1.2 Optional Parameters
(entryname[/password][ entryname[/password]... ])
names the entries to be deleted. If more than one entry is to be
deleted, the list of entrynames must be enclosed in parentheses.
entryname
is the name of the entry to be deleted or the volume serial number
of the volume that contains a data space to be deleted. A generic
name may be coded to delete multiple entries with one entryname.
(For example, GENERIC.*.BAKER is a generic name where * is any 1-
to 8-character simple name.)
password
specifies a password for a password-protected entry. Passwords
may be specified for each entryname, or the catalog's password may
be specified through the CATALOG parameter for the catalog that
contains the entries to be deleted. Only certain types of catalog
entries can be password protected, as follows:
To delete:
ALIAS|ALTERNATEINDEX|CLUSTER|GENERATIONDATAGROUP|
NONVSAM|PAGESPACE|PATH|SPACE|USERCATALOG
specifies the type of object or entry to be deleted. If the object to
be deleted is a system data set, see the DELETE SCRATCH|NOSCRATCH
section in DFSMS/MVS V1R2 Managing Catalogs for additional
information.
ALIAS
specifies that the entry to be deleted is an alias entry.
ALTERNATEINDEX
specifies that the object to be deleted is an alternate index and
its data and index entries. When a path entry is associated with
the alternate index, the path entry is also deleted.
Abbreviation: AIX
CLUSTER
specifies that the object to be deleted is a cluster, its
associated data and index entries, and any related paths and
alternate indexes.
Abbreviation: CL
GENERATIONDATAGROUP
specifies that the entry to be deleted is a generation data group
entry. To delete a generation data group that is not empty, you
must specify the FORCE parameter.
Abbreviation: GDG
NONVSAM
specifies that the entry to be deleted is a non-VSAM data set
entry.
If the non-VSAM data set has aliases, all of its alias entries are
deleted.
If the non-VSAM data set is partitioned, you can delete one of its
members by specifying pdsname(membername).
Abbreviation: NVSAM
PAGESPACE
specifies that an inactive page space is to be deleted. A page
space is identified as "active" during the operator's IPL
procedure.
Abbreviation: PGSPC
PATH
specifies that a path entry is to be deleted. No entries
associated with the path are deleted.
SPACE
specifies that all empty VSAM data spaces on a volume are to be
deleted. This parameter is required when you want to delete the
volume's empty data spaces.
To delete a data space that is not empty, you must specify both
the SPACE parameter and the FORCE parameter.
If all data spaces on a volume have been deleted and the volume is
not a candidate or catalog volume, its volume entry is also
deleted.
Abbreviation: SPC
USERCATALOG
specifies that the object to be deleted is a user catalog.
Abbreviation: UCAT
CATALOG(catname[/password])
specifies the name of the catalog that contains the entries to be
deleted. For information about the order in which catalogs are
searched, see "Catalog Search Order for DELETE" in topic 1.6.5.
catname
identifies the catalog that contains the entry to be deleted.
password
specifies the password of the catalog that contains the entries to
be deleted. If entries to be deleted are password-protected and
the catalog is also password-protected, a password must be
supplied either through CATALOG or with the name of each entry to
be deleted. The password that must be specified for each entry
type is given under the description of the entryname parameter.
Abbreviation: CAT
ERASE|NOERASE
specifies whether the data component of a cluster or alternate index
to be deleted is to be erased (overwritten with binary zeros).
This parameter will override whatever was coded when the cluster or
alternate index was defined or last altered. This parameter should be
specified only when a cluster or an alternate index entry is to be
deleted. When you specify ERASE, you must identify the catalog of the
entry that is still to be deleted with a JOBCAT or STEPCAT DD
statement unless
ERASE
specifies that the data component is to be overwritten with binary
zeros when the cluster or alternate index is deleted. If ERASE is
specified, the volume that contains the data component must be
mounted.
Abbreviation: ERAS
NOERASE
specifies that the data component is not to be overwritten with
binary zeros when the cluster or alternate index is deleted.
Abbreviation: NERAS
FILE(ddname)
specifies the name of the DD statement that identifies:
The volume(s) owned by the catalog when you delete a catalog using
the FORCE option.
When deleting multivolume non-VSAM data sets with the SCRATCH option,
DELETE SCRATCH processing requires access to each volume in the
entry's catalog record before the scratch can be issued. This
requires either all volumes to be mounted, online, and allocable to
the job, or the use of the FILE parameter specifying a DD statement
allocating at least one mountable unit (not permanently resident or
reserved). Deferred mount must be specified on the DD statement so
FORCE|NOFORCE
specifies whether objects that are not empty should be deleted.
FORCE
allows you to delete data spaces, generation data groups, and user
catalogs without first ensuring that these objects are empty.
All VSAM data spaces on the volume(s) are scratched from the
VTOC. VSAM's ownership of the volume(s) is given up.
Each non-VSAM data set entry pointed to by the GDG base entry
is deleted before the GDG base entry is deleted. However, the
non-VSAM data set's space and contents on the volume are
undisturbed.
clusters on the volume are open. All data spaces are deleted
from each volume owned by the catalog. The volumes are then
available to be used by the system or to be assigned to other
VSAM catalogs.
Non-VSAM data set entries in the catalog are deleted, but the
non-VSAM data set's space on the volume is undisturbed. The
non-VSAM data set can be located with its DSCB in the volume's
VTOC.
Abbreviation: FRC
NOFORCE
causes the DELETE command to terminate when you request the
deletion of a data space, generation data group, or catalog that
is not empty.
Abbreviation: NFRC
PURGE|NOPURGE
specifies whether the entry is to be deleted regardless of the
retention period specified. This parameter cannot be used if a data
space entry is to be deleted.
PURGE
specifies that the entry is to be deleted even if the retention
period, specified in the TO or FOR parameter, has not expired.
Abbreviation: PRG
NOPURGE
specifies that the entry is not to be deleted if the retention
period has not expired.
Abbreviation: NPRG
SCRATCH|NOSCRATCH
specifies whether a data set is to be removed from the VTOC of the
volume on which it resides. This parameter can only be specified for
a cluster, an alternate index, a page space, or a non-VSAM data set.
SCRATCH
specifies that a non-VSAM data set or a data space is to be
removed from the VTOC of the volume on which it resides.
space defined with the UNIQUE attribute, the entry for the data
set is removed from the VTOC. For a cluster, alternate index, or
page space defined with the SUBALLOCATE attribute, the entry is
deleted from the catalog and thus removed from the data space.
The entry is not removed from the VTOC.
When you specify SCRATCH, you must identify the catalog of the
entry to be deleted with a JOBCAT or STEPCAT DD statement, unless
the entry is in the master catalog, the first qualifier in the
entry's qualified name is the catalog's name or alias, or the FILE
parameter is specified.
To remove the format-1 DSCB from the VTOC you should use the
SCRATCH function of the IEHPROGM utility.
The data set was cataloged on a system not defined with the
MVS/Hardware Configuration Definition (MVS/HCD), but used on a
system that is defined with MVS/HCD.
Abbreviation: SCR
NOSCRATCH
specifies that the entry is to be deleted from the catalog only,
without mounting the volume that contains the object defined by
the entry.
If you are deleting a non-VSAM data set that was defined with
a device type named by the user (for example, SYSDA) and the
device type is invalid.
Abbreviation: NSCR
Subtopics
3.14.2.1 Deleting a Non-VSAM Data Set's Entry: Example 1
3.14.2.2 Deleting a Key-Sequenced VSAM Cluster in a Catalog: Example 2
3.14.2.3 Deleting an Entry-Sequenced VSAM Cluster in a VSAM Catalog and All Empty
Data Spaces On a Volume: Example 3
3.14.2.4 Deleting Two Key-Sequenced Clusters in a Catalog: Example 4
3.14.2.5 Deleting Nonempty VSAM Data Spaces on a Volume for a VSAM Catalog:
Example 5
3.14.2.6 Deleting a User Catalog: Example 6
3.14.2.7 Deleting an Alias Entry in a Catalog: Example 7
3.14.2.8 Deleting Generically Named Entries in a Catalog: Example 8
3.14.2.9 List a Generation Data Group's Entries, Then Delete the Group and Its
Data Sets in a Catalog: Example 9
3.14.2.10 Deleting a Member of a Partitioned (Non-VSAM) Data Set in a Catalog:
Example 10
3.14.2.11 Deleting a Page Space: Example 11
Command parameters:
PURGE specifies that the non-VSAM data set's retention period or date
is to be ignored.
Command parameters:
3.14.2.3 Deleting an Entry-Sequenced VSAM Cluster in a VSAM Catalog and All Empty
Data Spaces On a Volume: Example 3
The first DELETE command deletes the only VSAM cluster on volume VSER03.
The second DELETE command causes VSAM to examine each data space cataloged
in the volume's entry. If the data space is empty, it is deleted. VSAM
deletes the volume entry when there are no data spaces cataloged in it,
and when there are no data sets identified that specify the volume as a
candidate volume. VSAM also updates the volume's VTOC to reflect the
deleted data spaces. The DD2 DD statement ensures that volume VSER03 is
mounted when its data spaces are deleted.
In this example, JCL has been used instead of allowing access method
services to dynamically allocate the volume. If the volume were to be
mounted as permanently resident or reserved, access method services could
dynamically allocate the volume without the need of JCL or the FILE
parameter.
VSER03 identifies the volume that contains empty VSAM data spaces.
3.14.2.5 Deleting Nonempty VSAM Data Spaces on a Volume for a VSAM Catalog:
Example 5
All of the data spaces on volume VSER05 are deleted, whether or not they
are empty. All VSAM data spaces on the volume are scratched from the VTOC
and the ownership of the volume is surrendered by the catalog, AMASTCAT.
Any clusters or alternate indexes contained within the data spaces on
volume VSER05 are marked unusable in the catalog. Because all VSAM data
spaces on the volume are deleted, the volume's catalog entry is also
deleted.
VSER05 identifies the volume with its serial number. Because the
volume's VTOC must be updated, access method services will dynamically
allocate the volume.
FORCE specifies that all VSAM data spaces on the volume are to be
deleted, whether or not they are empty, and that volume ownership is
to be released.
CATALOG identifies the catalog that owns the volume, AMASTCAT. The
catalog's update- or higher-level password is required.
The DELETE command deletes the catalog. If a VSAM catalog is deleted, the
volume that contained the catalog is now available for ownership by
another VSAM catalog. The DELETE command also deletes the catalog's user
catalog connector entry in the master catalog.
D27UCAT1 is the name of the user catalog. The catalog's update (or
higher level) password is required.
CATALOG identifies the catalog that contains the entry, USERCAT4, and
its master password, USERMRPW.
3.14.2.9 List a Generation Data Group's Entries, Then Delete the Group and Its
Data Sets in a Catalog: Example 9
A generation data group, GDG01, and its associated (generation data set)
entries are listed. Next, the only generation data set in the group is
deleted. Finally, the generation data group base catalog entry is
deleted.
The LISTCAT command lists the generation data group GDG01 and its
associated generation data set entries.
The first DELETE command removes the non-VSAM data set entry for the only
generation data set in the generation data group: GDG01.G0001V00.
The second DELETE command removes the catalog entry of the generation data
group base from the catalog.
GDG01 is the entry name of the object being deleted. GDG01 identifies
the generation data group base entry.
The first DELETE command deletes one of the members of a partitioned data
set, EXAMPLE.NONVSAM2(MEM1), from the user catalog, USERCAT4.
Command parameters:
CATALOG identifies the catalog that contains the entry, USERCAT4, and
its master password, USERMRPW.
The second DELETE command deletes all remaining members, as well as the
data set itself, of the partitioned non-VSAM data set EXAMPLE.NONVSAM2.
Command parameters:
PURGE specifies that the non-VSAM data set's retention period or date
is to be ignored. If PURGE had not been specified and the non-VSAM
data set's retention period has not yet expired, VSAM would not delete
its entry.
CATALOG identifies the catalog that contains the entry, USERCAT4, and
its master password, USERMRPW.
In the second part of this example, the DSCB entry in the volume's VTOC is
removed. Dynamic allocation is used to allocate the data set's volume.
Command parameters:
3.15 EXAMINE
+------------------------------------------------------------------------+
¦ EXAMINE ¦ NAME(clustername[/password]) ¦
¦ ¦ [INDEXTEST|NOINDEXTEST] ¦
¦ ¦ [DATATEST|NODATATEST] ¦
¦ ¦ [ERRORLIMIT(value)] ¦
+------------------------------------------------------------------------+
Subtopics
3.15.1 EXAMINE Parameters
3.15.2 EXAMINE Examples
Subtopics
3.15.1.1 Required Parameters
3.15.1.2 Optional Parameters
NAME(clustername[/password])
specifies which user cluster is to be analyzed for structural
integrity by EXAMINE. EXAMINE expects the user to have specified a
particular key-sequenced data set by its cluster name. The
appropriate cluster component is then selected dynamically during
program execution. When analyzing a VSAM catalog, use a STEPCAT DD
statement to point to that catalog and apply a VERIFY DATASET command
before using the EXAMINE command. A STEPCAT DD statement is not
required for the master catalog.
clustername
specifies the identification of the key-sequenced data set cluster
to be analyzed.
password
specifies, optionally, the master password associated with a
catalog or the control password for a data set.
INDEXTEST|NOINDEXTEST
specifies whether or not EXAMINE is to perform tests associated with
the index component of the cluster. INDEXTEST is the default.
INDEXTEST
performs tests on the index component of a key-sequenced data set
cluster.
Abbreviation: ITEST
NOINDEXTEST
does not perform any testing on the index component of a
key-sequenced data set cluster.
Abbreviation: NOITEST
DATATEST|NODATATEST
specifies whether or not EXAMINE is to perform tests associated with
the data component of the cluster. NODATATEST is the default.
DATATEST
performs tests on the data component of a key-sequenced data set
cluster. NOINDEXTEST and DATATEST are specified when only a
DATATEST is desired.
Abbreviation: DTEST
NODATATEST
does not perform any testing on the data component of a
key-sequenced data set cluster.
Abbreviation: NODTEST
ERRORLIMIT(value)
specifies a numeric limit (value) to the number of errors for which
detailed EXAMINE error messages are to be printed during program
execution. ERRORLIMIT is designed to prevent runaway message output.
The default value for ERRORLIMIT is 2147483647 errors, but you can
specify any number between 0 and 2147483647. Note that testing
continues even though the error limit is reached.
Abbreviation: ELIMIT
Subtopics
3.15.2.1 Examine Both Components of a Key-Sequenced Data Set: Example 1
3.15.2.2 Examine the Data Component of a VSAM User Catalog: Example 2
//EXAMEX2 JOB
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=A
//SYSIN DD *
EXAMINE -
NAME(KSDS01) -
INDEXTEST -
DATATEST
/*
Command parameters:
NAME specifies the cluster name only. The data set has no control
level password protection.
//EXAMEX3 JOB
//STEP1 EXEC PGM=IDCAMS
//STEPCAT DD DSN=VCAT01.VCAT,DISP=SHR
//SYSPRINT DD SYSOUT=A
//SYSIN DD *
VERIFY DATASET(VCAT01.VCAT)
EXAMINE -
NAME(VCAT01.VCAT) -
NOINDEXTEST -
DATATEST -
ERRORLIMIT(1000)
/*
Command parameters:
NAME specifies the catalog name. The catalog must be connected to the
master catalog.
Note: The STEPCAT DD statement and the VERIFY DATASET command are
required when you use EXAMINE against a VSAM user catalog.
3.16 EXPORT
+------------------------------------------------------------------------+
¦ EXPORT ¦ entryname[/password] ¦
¦ ¦ {OUTFILE(ddname)|OUTDATASET(entryname)} ¦
¦ ¦ [ERASE|NOERASE] ¦
¦ ¦ [INFILE(ddname)] ¦
¦ ¦ [INHIBITSOURCE|NOINHIBITSOURCE] ¦
¦ ¦ [INHIBITTARGET|NOINHIBITTARGET] ¦
¦ ¦ [PURGE|NOPURGE] ¦
¦ ¦ [TEMPORARY|PERMANENT] ¦
+------------------------------------------------------------------------+
Subtopics
3.16.1 EXPORT Parameters
3.16.2 EXPORT Examples
Subtopics
3.16.1.1 Required Parameters
3.16.1.2 Optional Parameters
entryname[/password]
names the cluster or alternate index to be exported. This parameter
must be the first parameter following EXPORT.
password
If you are exporting:
OUTFILE(ddname)|OUTDATASET(entryname)
specifies the name of the DD statement or the data set that is to
receive the data being exported.
OUTFILE(ddname)
specifies the name of the DD statement of the target data set.
Only the block size for the DCB parameter should be specified in
the DD statement. The default for block size for EXPORT is 2048.
Block size may be specified in the DD statement to override this
default and improve performance.
Abbreviation: OFILE
OUTDATASET(entryname)
specifies the name of the target data set. If OUTDATASET is
specified, an attempt is made to dynamically allocate the target
data set. The characteristics of the target data set are
described in "For a Target Data Set" in topic 1.4.2.5.
Abbreviation: ODS
ERASE|NOERASE
specifies whether the data component of the cluster or alternate index
to be exported is to be erased (overwritten with binary zeros). This
parameter overrides whatever was specified when the object was defined
or last altered.
Only specify this parameter if you want the object to be deleted from
the original system.
ERASE
specifies that the data component is to be overwritten with binary
zeros when the cluster or alternate index is deleted. If ERASE is
specified, the volume that contains the data component must be
mounted.
Abbreviation: ERAS
NOERASE
specifies that the data component is not to be overwritten with
binary zeros when the cluster or alternate index is deleted.
Abbreviation: NERAS
INFILE(ddname)
specifies the name of the DD statement that identifies the cluster or
alternate index to be exported. If the cluster or alternate index has
been defined with a maximum logical record length greater than 32760
bytes, EXPORT processing terminates with an error message.
When INFILE and its DD statement are not specified for an object that
is to be exported, an attempt is made to dynamically allocate it with
a disposition of OLD.
Abbreviation: IFILE
INHIBITSOURCE|NOINHIBITSOURCE
specifies whether the original data records (the data records of the
source cluster or alternate index) can be accessed for any operation
other than retrieval after a copy is exported. This specification can
later be altered through the ALTER command.
INHIBITSOURCE
specifies that the source object in the original system cannot be
accessed for any operation other than retrieval. This parameter
can be specified only when the object is to be temporarily
exported. (A backup copy of the object is made and the object
Abbreviation: INHS
NOINHIBITSOURCE
specifies that the original data records in the original system
can be accessed for any kind of operation.
Abbreviation: NINHS
INHIBITTARGET|NOINHIBITTARGET
specifies how the data records copied into the target alternate index
or cluster can be accessed after they have been imported to another
system. Use the ALTER command to alter this parameter.
INHIBITTARGET
specifies that the target object cannot be accessed for any
operation other than retrieval after it has been imported into
another system.
Abbreviation: INHT
NOINHIBITTARGET
specifies that the target object can be accessed for any type of
operation after it has been imported into another system.
Abbreviation: NINHT
PURGE|NOPURGE
specifies whether the cluster or alternate index to be exported is to
be deleted from the original system with regard to the retention
period specified in a TO or FOR parameter when the object was defined.
Only specify this parameter if the object is to be deleted from the
original system.
PURGE
specifies that the object is to be deleted even if the retention
period has not expired.
Abbreviation: PRG
NOPURGE
specifies that the object is not to be deleted unless the
retention period has expired.
Abbreviation: NPRG
TEMPORARY|PERMANENT
specifies whether the cluster or alternate index to be exported is to
be deleted from the original system.
TEMPORARY
specifies that the cluster or alternate index is not to be deleted
Abbreviation: TEMP
PERMANENT
specifies that the cluster or alternate index is to be deleted
from the original system. Its storage space is freed. If its
retention period has not yet expired, you must also code PURGE.
Abbreviation: PERM
Subtopics
3.16.2.1 Exporting a Key-Sequenced Cluster: Example 1
3.16.2.2 Exporting an Entry-Sequenced Cluster: Example 2
+------------------------------------------------------------------------+
¦ EXPORT ¦ usercatname[/password] ¦
¦ ¦ DISCONNECT ¦
+------------------------------------------------------------------------+
Subtopics
3.17.1 EXPORT DISCONNECT Parameters
3.17.2 EXPORT DISCONNECT Example
Subtopics
3.17.1.1 Required Parameters
usercatname[/password]
names the user catalog to be disconnected. This parameter must be the
first parameter following EXPORT. When you are disconnecting a user
catalog, you must supply the update- or higher-level password of the
master catalog. Update or higher RACF authority for the master
catalog is required.
DISCONNECT
specifies that a user catalog is to be disconnected. The connector
entry for the user catalog is deleted from the master catalog. Also,
the user catalog's alias entries are deleted from the master catalog.
Abbreviation: DCON
Subtopics
3.17.2.1 Export Disconnect of a User Catalog
The user catalog D27UCAT1 is exported and disconnected from the system.
The user catalog connector entry for D27UCAT1 is removed from the master
catalog. The catalog becomes unavailable to system users until the system
programmer reconnects it to the system using an IMPORT CONNECT command.
3.18 EXPORTRA
The EXPORTRA command recovers VSAM and non-VSAM catalog entries from
catalog recovery areas, and recovers data for VSAM clusters and alternate
indexes by means of catalog recovery areas. This command is for use with
recoverable catalogs only.
+------------------------------------------------------------------------------+
¦ EXPORTRA ¦ OUTFILE(ddname) ¦
¦ ¦ CRA((ddname1{ALL[ INFILE(ddname2)]| ¦
¦ ¦ ENTRIES((entryname[ ddname3])[(entryname[ ddname3])...])| ¦
¦ ¦ NONE}) ¦
¦ ¦ [(ddname1...)...]) ¦
¦ ¦ [FORCE|NOFORCE] ¦
¦ ¦ [MASTERPW(password)] ¦
+------------------------------------------------------------------------------+
Subtopics
3.18.1 EXPORTRA Parameters
3.18.2 EXPORTRA Examples
Subtopics
3.18.1.1 Required Parameters
3.18.1.2 Optional Parameters
OUTFILE(ddname)
identifies the DD statement that describes the data set (usually a
movable disk pack or magnetic tape reel) that is to contain a copy of
the VSAM objects and catalog entries identified with the CRA
parameter.
With the exception of block size, the data set characteristics of the
target data set that is to contain the cluster to be exported should
not be specified. Block size is defaulted by the EXPORTRA command to
2048. Block size may be specified in the DD statement to override
this default and improve performance.
Abbreviation: OFILE
CRA((ddname1{ALL[ INFILE(ddname2)]|
ENTRIES((entryname[ ddname3])[(entryname[ ddname3])...])|
NONE})
[(ddname1...)...])
The CRA parameter and its subparameters describe the catalog recovery
area(s) being referred to, identify the specific entries to be copied
from the catalog recovery area, and specify the volumes that contain
the entries' data. A separate set of subparameters is used to
describe each catalog recovery area.
ddname1
identifies the DD statement that describes a volume containing the
referenced catalog recovery area. Each ddname1 you specify is
followed by one of the following subparameters that define the
action to be taken regarding the catalog recovery area:
ALL
specifies that each entry in ddname1's catalog recovery area is to
be copied to the OUTFILE data set. In addition, the contents
(that is, data records in logical sequential order) of each VSAM
cluster and alternate index are copied, following the copy of the
catalog recovery area entry.
INFILE(ddname2)
identifies the DD statement that describes multiple volumes to be
used in the recovery process. INFILE is required if the VSAM
clusters and/or alternate indexes whose entries are contained in
ddname1's catalog recovery area reside on multiple volumes. The
ddname2 DD statement should include all volumes containing the
data set, including the recovery area volume.
Abbreviation: IFILE
ENTRIES(
(entryname[ ddname3])
[(entryname[ ddname3])...])
names each entry in the catalog recovery area that is to be copied
to the OUTFILE data set. All other entries in the catalog
recovery area are not copied.
entryname
names an object whose catalog entry is contained in the
ddname1 volume's catalog recovery area. You can specify the
entryname of the following entry types: alternate index,
cluster, and non-VSAM.
When you specify a cluster entry, the cluster's data and index
entries and all associated path entries are also copied. In
addition, the cluster's contents (that is, its data records,
in logical sequential order) are copied, following the copies
of the cluster's catalog entries.
ddname3
identifies the DD statement that describes each volume that
contains part of the cluster or alternate index. ddname3 is
ignored when specified for a non-VSAM entry.
Abbreviation: ENT
NONE
specifies that no object in the volume's catalog recovery area is
to be copied. You must specify ddname1 NONE for each volume
referenced in a ddname2 or ddname3 DD statement if you do not want
the entries in its catalog recovery area to be copied.
FORCE|NOFORCE
specifies whether the catalog entry's copy is to be copied from the
catalog recovery area, even though the copy itself might be
inaccurate.
FORCE
specifies that the object's catalog entry copy is copied from the
volume's catalog recovery area, even though a loss of data
integrity might result. Time stamp and extent mismatches are
ignored.
Abbreviation: FRC
NOFORCE
specifies that the catalog recovery area's copy is not copied if
it is not accurate, and the EXPORTRA command terminates with an
error message.
Abbreviation: NFRC
MASTERPW(password)
specifies the master catalog's master password. The master catalog's
master password is required when the master catalog is
password-protected. Alter RACF authority to the master catalog is
required.
Abbreviation: MRPW
Subtopics
3.18.2.1 Using EXPORTRA for All Entries on One Volume: Example 1
3.18.2.2 Using EXPORTRA for All Entries on Multiple Volumes: Example 2
3.18.2.3 Using EXPORTRA for Selected Entries: Example 3
The EXPORTRA function for one volume, V0, is owned by the VSAM master
catalog. All the entries contained in the catalog recovery area on V0 and
the data sets themselves are copied to a SAM data set on another disk
volume. All the data sets reside entirely within the one volume.
CRA is required and identifies the catalog recovery area and volume
from which the copy is to take place. VLV0 identifies the DD
statement for the catalog recovery volume. The ALL subparameter
specifies that all entries are to be copied from the catalog recovery
area. The INFILE subparameter is not required, because the data sets
are contained completely within the one volume.
This example shows the EXPORTRA function for one volume owned by the VSAM
master catalog. All data sets contained on the volume, V0, and their
corresponding CRA entries describing the data sets are copied to a
sequential (SAM) data set on a tape volume. The catalog recovery area
contains data sets which reside on volumes V1 and V2 in addition to the
recovery volume, V0. The entries in the catalog recovery areas of the
additional volumes are not to be recovered.
VLV0 DD identifies the volume whose catalog recovery area contents are
to be exported.
CRA is required and identifies the catalog recovery area and volumes
from which the entries are to be copied. VLV0 identifies the DD
statement of the recovery volume. The ALL subparameter specifies that
all entries in the catalog recovery area of the volume identified by
VLV0 are to be copied.
VLV1 ALL is required and identifies the single volume data sets. This
subparameter must come after VLV1 NONE.
This example shows the EXPORTRA function for selected entries from the
catalog recovery area of one volume owned by the VSAM master catalog.
Three data sets and their corresponding entries from the catalog recovery
area on volume V0 are copied to a sequential (SAM) data set on another
disk volume. The remainder of the data sets and the catalog recovery area
entries are not copied. Two of the selected data sets are multivolume
VSAM data sets. The data sets and their corresponding entries in the
catalog recovery areas of the additional volumes are not recovered.
VLV0 DD identifies the volume whose catalog recovery area contains the
entries for the three VSAM data sets to be copied.
CRA is required and identifies the catalog recovery area and volumes
from which the export is to take place. VLV0 identifies the DD
statement of the recovery volume. The ENTRIES subparameter identifies
the three entries which are to be copied.
The VLV1 NONE and VLV2 NONE subparameters are necessary because the
volumes they identify are referenced in previous ddname3 subparameters
(VOLA and VOLB); however, the contents of their catalog recovery areas
are not to be copied.
3.19 IMPORT
+------------------------------------------------------------------------+
¦ IMPORT ¦ {INFILE(ddname)|INDATASET(entryname)} ¦
¦ ¦ {OUTFILE(ddname[/password])| ¦
¦ ¦ OUTDATASET(entryname[/password])} ¦
¦ ¦ [ERASE|NOERASE] ¦
¦ ¦ [INTOEMPTY] ¦
¦ ¦ [OBJECTS((entryname ¦
¦ ¦ [FILE(ddname)] ¦
¦ ¦ [(KEYRANGES((lowkey highkey)] ¦
¦ ¦ [(lowkey highkey)...])] ¦
¦ ¦ [NEWNAME(newname)] ¦
¦ ¦ [ORDERED|UNORDERED] ¦
¦ ¦ [VOLUMES(volser[ volser...])]) ¦
¦ ¦ [(entryname...)...])] ¦
¦ ¦ [PURGE|NOPURGE] ¦
¦ ¦ [SAVRAC|NOSAVRAC] ¦
¦ ¦ ¦
¦ ¦ [CATALOG(catname[/password])] ¦
+------------------------------------------------------------------------+
Subtopics
3.19.1 IMPORT Parameters
3.19.2 IMPORT Examples
Subtopics
3.19.1.1 Required Parameters
3.19.1.2 Optional Parameters
INFILE(ddname)|INDATASET(entryname)
specifies the name of a DD statement or names the portable data set
that contains a copy of the cluster or alternate index to be imported.
INFILE(ddname)
specifies the name of a DD statement that identifies the portable
copy of the cluster or alternate index to be imported.
Abbreviation: IFILE
INDATASET(entryname)
specifies the name of the portable data set that contains a copy
of the cluster or alternate index to be imported.
Abbreviation: IDS
OUTFILE(ddname[/password])|OUTDATASET(entryname[/password])
specifies the name of a DD statement or the name of a cluster or
alternate index to be imported.
When you use OUTFILE or OUTDATASET to describe the data set, you must
identify the data set's catalog with a JOBCAT or STEPCAT DD statement
unless:
Notes:
OUTFILE(ddname[/password])
specifies the name of a DD statement that identifies the data set
name and volume(s) of the cluster or alternate index to be
imported.
password
is the update- or higher-level password of the target object.
You must supply the password when the target data set is
empty. (See the VOLUMES parameter for more information about
importing into an empty data set.) Otherwise, IMPORT obtains
the required VSAM data set passwords from the portable data
set. Update or higher RACF authority to the target object is
required.
Abbreviation: OFILE
OUTDATASET(entryname[/password])
specifies the name of the cluster or alternate index that is to be
imported. When you specify OUTDATASET, the VSAM data set you
identify is dynamically allocated.
password
is the update- or higher-level password of the target object.
(See password under OUTFILE for password requirements of the
target data set.) Update or higher RACF authority to the
target object is required.
Abbreviation: ODS
CATALOG(catname[/password])
specifies the name of the catalog in which the imported object is to
be cataloged. This parameter is required when the catalog is
password-protected.
catname
specifies the name of the catalog in which the entry to be
imported is to be defined.
password
specifies the catalog's update- or higher-level password. Update
or higher RACF authority to the catalog is required. When you
import an alternate index whose base cluster is
password-protected, you should supply the catalog's master
password. Alter RACF authority to the catalog is required.
Otherwise, you (or the operator) will be prompted to supply the
base cluster's master password. Alter RACF authority to the base
cluster is required. When you import an integrated catalog
facility user catalog and INTOEMPTY is not specified, the master
password of the master catalog is required. Alter RACF authority
to the master catalog is required.
Abbreviation: CAT
ERASE|NOERASE
specifies whether the data component of the cluster or alternate index
is to be erased (that is, overwritten with binary zeros). This
parameter can be used only when you are importing the object into the
system from which it was previously exported with the TEMPORARY
option. This parameter overrides whatever was specified when the
object was defined or last altered.
ERASE
specifies that the data component is to be overwritten with binary
zeros when the cluster or alternate index is deleted. If ERASE is
specified, the volume that contains the data component must be
mounted.
Abbreviation: ERAS
NOERASE
specifies that the data component is not to be overwritten with
binary zeros when the cluster or alternate index is deleted.
Abbreviation: NERAS
INTOEMPTY
specifies that you are importing from the portable data set into an
empty data set. If this parameter is not specified, an attempt to
import into an empty data set will fail. The password and RACF
profiles associated with the empty data set will be retained.
Abbreviation: IEMPTY
OBJECTS((entryname
[FILE(ddname)]
{KEYRANGES((lowkey highkey){(lowkey highkey)...})
[NEWNAME(newname)]
[ORDERED|UNORDERED]
[VOLUMES(volser[ volser...])])
[(entryname...)...])]
specifies the new or changed attributes for the cluster, alternate
index, or any associated paths to be imported. Access method services
matches each entryname against the name of each object on the portable
data set. When a match is found, the information specified by OBJECTS
overrides the information on the portable data set.
| Abbreviation: OBJ
entryname
specifies the name of the data component, index component,
cluster, alternate index, or path for which attributes are being
specified. The entryname must appear on the portable data set;
otherwise, the parameter list is ignored.
FILE(ddname)
specifies the name of a DD statement that identifies the volumes
allocated to the data and index components of a key-sequenced
cluster or an alternate index. This parameter is used when the
components are defined as unique and when the data and index
components reside on different device types. FILE can be coded
twice within the OBJECTS parameter: once in the parameter set for
the index component and once in a second parameter set for the
data component. If you do not specify FILE, the required volumes
are dynamically allocated. The volumes must be mounted as
permanently resident and reserved.
By using the KEYRANGE parameter, you may specify key range pairs
for a key-sequenced data set that previously was not divided by
key or that was divided in different key range groups.
The maximum number of key range pairs is 20. Key ranges must be
in ascending order, and may not overlap. Gaps may exist within a
specified set of ranges, but records cannot be inserted within a
gap.
lowkey
specifies the low key of the key range. If lowkey is shorter
than the actual keys, it will be padded with binary zeros.
highkey
specifies the high key of the key range. If highkey is
shorter than the actual keys, it will be padded with binary
ones.
Abbreviation: KRNG
NEWNAME(newname)
specifies the new name of an imported cluster or alternate index
or its components, or an associated path. When you specify
NEWNAME, only the name specified as entryname is changed.
Abbreviation: NEWNM
ORDERED|UNORDERED
specifies whether volumes are to be used in the order in which
they were listed when the data set was originally defined (as
contained on the portable data set) or in the VOLUMES parameter.
If the data set is divided into key ranges, all the records within
the range specified by the first low-key high-key pair are placed
on the first volume; all the records within the second range are
placed on the second volume, and so on.
VOLUMES(volser[ volser...])
specifies the volumes on which the cluster or alternate index is
to reside. If VOLUMES is not coded, the original volume is the
receiving volume.
When you specify VOLUMES, you can specify the cluster or alternate
index name, the data component name or the index component name as
entryname with the following results:
Using the DEFINE command, define a new entry for the cluster
or alternate index in the catalog to which it is to be moved.
If space was allocated in RECORDS, you may specify the same
quantity; if it was allocated in TRACKS or CYLINDERS, you must
adjust the quantity for the new device type. If an entry
already exists in the catalog for the object, you must delete
that entry or use a different name in the DEFINE command.
Using the IMPORT command, load the portable data set into the
newly defined cluster or alternate index. When IMPORT
encounters an empty target data set, the exported catalog
information is bypassed and only the data records are
processed.
Abbreviation: VOL
PURGE|NOPURGE
specifies whether the original cluster or alternate index is to be
deleted and replaced, regardless of the retention time specified in
the TO or FOR parameter. This parameter can be used only when you are
importing the object into the original system from which it was
exported with the TEMPORARY option.
PURGE
Abbreviation: PRG
NOPURGE
specifies that the object is not to be deleted unless the
retention period has expired.
Abbreviation: NPRG
SAVRAC|NOSAVRAC
specifies, for a RACF-protected object, whether existing profiles are
to be used or whether new profiles are to be created.
SAVRAC
specifies that RACF data set profiles already existing for objects
being imported from the portable data set are to be used.
Typically, you would specify this option when replacing a data set
with a portable copy made with an EXPORT TEMPORARY operation.
SAVRAC will cause the existing profiles to be saved and used,
rather than letting the system delete old profiles and create new,
default profiles.
NOSAVRAC
specifies that new RACF data set profiles are to be created. This
is usually the situation when importing a permanently exported
cluster.
Subtopics
3.19.2.1 Importing a Key-Sequenced Cluster: Example 1
3.19.2.2 Importing an Entry-Sequenced Cluster in a VSAM Catalog: Example 2
The IMPORT command copies the portable data set, TAPE2, into the system
and assigns it the name D40.EXAMPLE.KSDS1. When TAPE2 is copied, access
method services reorganizes the data records so that deleted records are
removed and control intervals and control areas contain the specified free
space percentages. The original copy of the cluster is deleted and
replaced with the data records from the TAPE2 portable file.
IMPORT -
INFILE(SOURCE) -
OUTDATASET(D40.EXAMPLE.KSDS1) -
CATALOG(D27UCAT1/USERMRPW)
/*
OUTDATASET gives the name of the data set being imported. Because the
high-level qualifier of the data set is the name of the alias of the
user catalog D27UCAT2, access method services can dynamically allocate
the cluster without specifying a JOBCAT or STEPCAT DD statement.
password is required.
IMPORT -
INFILE(SOURCE) -
OUTDATASET(D40.EXAMPLE.ESDS3) -
OBJECTS( -
(D50.EXAMPLE.ESDS1 -
NEWNAME(D40.EXAMPLE.ESDS3) -
VOLUMES(VSER02) ) -
) -
CATALOG(D27UCAT1/USERUPPW)
/*
OUTDATASET gives the name of the data set that is being imported; the
name is the renamed cluster. Because the high-level qualifier of the
data set name is the name of the alias of the catalog, D27UCAT1, the
data set can be dynamically allocated without specifying a JOBCAT or
STEPCAT DD statement.
OBJECTS changes some of the attributes for the object being imported:
The IMPORT CONNECT command connects a user catalog. The syntax of this
command is:
+------------------------------------------------------------------------+
¦ IMPORT ¦ CONNECT ¦
¦ ¦ OBJECTS((usercatname ¦
¦ ¦ DEVICETYPE(devtype) ¦
¦ ¦ VOLUMES(volser))) ¦
¦ ¦ ¦
¦ ¦ [CATALOG(mastercatname[/password])] ¦
+------------------------------------------------------------------------+
Subtopics
3.20.1 IMPORT CONNECT Parameters
3.20.2 Import Connect Example
Subtopics
3.20.1.1 Required Parameters
3.20.1.2 Optional Parameters
CONNECT
specifies that a user catalog is to be connected. The user catalog is
connected to the master catalog in the receiving system. When CONNECT
is coded, OBJECTS must also be coded to name the catalog and to
identify the volume serial number and device type of the volume that
contains the user catalog.
Abbreviation: CON
OBJECTS((usercatname
DEVICETYPE(devtype)
VOLUMES(volser)))
specifies the user catalog to be connected.
usercatname
specifies the name of the user catalog being connected.
DEVICETYPE(devtype)
specifies the device type of the volume that contains a user
catalog that is to be connected. You can specify a device type
for any direct access device that is supported.
Abbreviation: DEVT
VOLUMES(volser)
specifies the volume on which the user catalog resides.
Abbreviation: VOL
CATALOG(catname[/password])
specifies the name of the catalog in which the catalog you are
connecting is to be defined. This parameter is required when the
catalog is password-protected or when you want to direct the catalog's
entry to a particular catalog other than the master catalog.
catname
is the name of the catalog in which the catalog you are connecting
is to be defined. If the specified catalog is not the master
catalog, the catalog must be identified by a JOBCAT or STEPCAT DD
statement. If you are import connecting a user catalog, the
specified catalog is usually the master catalog.
password
specifies the master catalog's update- or higher-level password.
Update or higher RACF authority to the master catalog is required.
Abbreviation: CAT
Subtopics
3.20.2.1 Importing to Connect a User Catalog
IMPORT -
OBJECTS( -
(D27UCAT1 -
VOLUME(VSER02) -
DEVICETYPE(3380) ) -
) -
CONNECT -
CATALOG(AMAST1/MASTMPW1)
/*
Command parameters:
3.21 IMPORTRA
The IMPORTRA command restores catalog entries from a portable data set
created by the EXPORTRA command. This command is for use with recoverable
catalogs only. The syntax of the IMPORTRA command is:
+------------------------------------------------------------------------+
¦ IMPORTRA ¦ {INFILE(ddname)|INDATASET(entryname)} ¦
¦ ¦ [OUTFILE(ddname)] ¦
¦ ¦ [OBJECTS((entryname ¦
¦ ¦ [DEVICETYPES(devtype[ devtype...])] ¦
¦ ¦ [FILE(ddname)] ¦
¦ ¦ [VOLUMES(volser[ volser...])]) ¦
¦ ¦ [(entryname...)...])] ¦
¦ ¦ [SAVRAC|NOSAVRAC] ¦
¦ ¦ ¦
¦ ¦ [CATALOG(catname[/password])] ¦
+------------------------------------------------------------------------+
Subtopics
3.21.1 IMPORTRA Parameters
3.21.2 IMPORTRA Examples
Subtopics
3.21.1.1 Required Parameters
3.21.1.2 Optional Parameters
INFILE(ddname)
names the DD statement that describes the portable data set (the data
set that resulted when you issued the EXPORTRA command). If the
portable data set resides on a nonlabeled tape or in a direct access
data set created by DOS/VS access method services, the DCB BLKSIZE
parameter must be specified on the referenced DD statement.
If you specified BLKSIZE for the portable data set that was created
when you executed your EXPORTRA job, you must specify the same block
size for your IMPORTRA job.
Note: If you did not specify a block size for EXPORTRA, a default
value of 2048 was used. Consequently, if you do not specify BLKSIZE
for IMPORTRA, IMPORTRA sets the block size to 2048.) All other
characteristics of the portable data set are established by IMPORTRA.
Abbreviation: IFILE
INDATASET(entryname)
specifies the data set name of the portable data set (the data set
that resulted when you issued the EXPORTRA command). When you specify
INDATASET instead of INFILE, the portable data set is dynamically
allocated.
Abbreviation: IDS
CATALOG(catname[/password])
identifies the target catalog.
catname
names the catalog. When you specify a user catalog, you must
describe and allocate the catalog with a JOBCAT or STEPCAT DD
statement.
password
is the target catalog's update- or higher-level password, if the
catalog is password protected. If any of the data sets being
imported is an alternate index whose base cluster is
password-protected, you should supply the catalog's master
password. Update or higher RACF authority to the catalog is
required.
Abbreviation: CAT
OBJECTS(entryname
[DEVICETYPES(devtype[ devtype...])]
[FILE(ddname)]
[VOLUMES(volser[ volser...])])
[(entryname...)...])
The OBJECTS parameter group specifies new or changed attributes for
objects on the portable data set.
OBJECTS
specifies new or changed attributes for a cluster, an alternate
index, or a non-VSAM data set that is being imported. By
specifying the OBJECTS parameter, you may override certain
attributes contained on the portable data set.
Abbreviation: OBJ
entryname
specifies the object's entryname. You can specify the
entryname and associated attributes for up to 255 objects.
DEVICETYPES(devtype[ devtype...])
specifies the device type on which a user catalog being imported
resides or the device type(s) on which a non-VSAM data set being
imported resides.
If entryname names a user catalog, you may specify only one device
type. If entryname names a non-VSAM data set that resides on
different device types, the device types listed in the DEVICETYPES
parameter must be specified in the same order as the volume serial
numbers listed in the VOLUMES parameter.
Abbreviation: DEVT
FILE(ddname)
specifies the name of a DD statement that identifies the volumes
allocated to the data and index components of a key-sequenced
cluster or an alternate index.
VOLUMES(volser[ volser...])
specifies the volume(s) on which a cluster or alternate index is
to reside, the volume on which a user catalog resides, or the
volume(s) on which a non-VSAM data set resides. If entryname
names a user catalog, you may specify only one volume serial
number as a subparameter of VOLUMES.
When you specify VOLUMES for a cluster or alternate index, you can
specify the cluster or alternate index name, the data component
name or the index component name as entryname with the following
results:
Abbreviation: VOL
OUTFILE(ddname)
names the DD statement that contains a data set name and the volume
serial number of each volume that is to contain the imported VSAM
clusters and alternate indexes. You must use concatenated DD
statements if the data sets are on different device types. If the
OUTFILE parameter is not supplied, the required data sets are
dynamically allocated as needed.
The dsname specified with the DD statement cannot be one of the names
cataloged in the target catalog (that is, the catalog that is to
contain the imported catalog entries) and it cannot be one of the
entrynames within the portable data set.
Abbreviation: OFILE
SAVRAC|NOSAVRAC
specifies, for a RACF-protected object, whether existing profiles are
to be used or whether new profiles are to be created.
SAVRAC
specifies that existing RACF data set profiles are to be saved
and used, rather than letting the system delete old profiles and
create new default profiles. The profiles will actually be
redefined by extracting information from existing profiles and
adding caller attributes. You should ensure that these added
attributes are acceptable. SAVRAC should be specified when RACF
data set profiles already exist for objects being imported from
the portable data set.
Warning: You should ensure that valid profiles do exist for all
components (for example, cluster, data, index) being imported when
SAVRAC is specified. If this is not done, an invalid and possibly
improper profile may be saved and used inappropriately.
NOSAVRAC
specifies that a profile will be defined for the imported
components if either the RACF Automatic Data Set Protection option
has been specified for you or if the exported component had a RACF
indication in the catalog at the time it was exported. NOSAVRAC
should be specified when you wish new profiles to be created.
There may be situations in which neither the SAVRAC nor NOSAVRAC mode
would be suitable for all entities restored from the catalog recovery
area. In such cases, the following procedure is suggested:
Issue two IMPORTRA commands, one specifying SAVRAC and the other
NOSAVRAC.
Subtopics
3.21.2.1 Recovering a VSAM Catalog: Example 1--Part 1 (EXPORTRA)
3.21.2.2 Recovering a VSAM Catalog: Example 1--Part 2 (IMPORTRA)
CRA is required and identifies the catalog recovery areas and volumes
from which the export is to take place. The ddnames of the DD
statements for these objects must be identical to the names specified
for this parameter. The ALL subparameter specifies that everything is
to be exported from each catalog recovery area.
statement for this object must be identical to the name specified with
this parameter.
This example imports all the data sets that were exported using EXPORTRA
in the previous example. The receiving catalog is the VSAM master
catalog, and the CATALOG parameter is used to supply its master password.
IMPORTRA -
INFILE(PORT) -
OUTFILE(VSAMIN) -
CATALOG(AMASTCAT/MCATMRPW)
/*
CATALOG specifies the name of the master catalog. The master password
of the target catalog is required to import catalog information.
3.22 LISTCAT
The LISTCAT command lists catalog entries. The syntax of this command is:
+------------------------------------------------------------------------+
¦ LISTCAT ¦ [ALIAS] ¦
¦ ¦ [ALTERNATEINDEX] ¦
¦ ¦ [CLUSTER] ¦
¦ ¦ [DATA] ¦
¦ ¦ [GENERATIONDATAGROUP] ¦
¦ ¦ [INDEX] ¦
¦ ¦ [NONVSAM] ¦
¦ ¦ [PAGESPACE] ¦
¦ ¦ [PATH] ¦
¦ ¦ [SPACE] ¦
¦ ¦ [USERCATALOG] ¦
¦ ¦ ¦
¦ ¦ [CREATION(days)] ¦
¦ ¦ [ENTRIES(entry name[/password] ¦
¦ ¦ [ entryname[/password]...])| ¦
¦ ¦ LEVEL(level)] ¦
¦ ¦ [EXPIRATION(days)] ¦
¦ ¦ [NAME| ¦
¦ ¦ HISTORY| ¦
¦ ¦ VOLUME| ¦
¦ ¦ ALLOCATION| ¦
¦ ¦ ALL] ¦
¦ ¦ [NOTUSABLE] ¦
¦ ¦ [OUTFILE(ddname)] ¦
¦ ¦ ¦
¦ ¦ [CATALOG(catname[/password])] ¦
+------------------------------------------------------------------------+
Subtopics
3.22.1 LISTCAT Parameters
3.22.2 LISTCAT Examples
Subtopics
3.22.1.1 Required Parameters
3.22.1.2 Optional Parameters
When the LISTCAT command is issued as a job step (not through TSO) and no
parameters are specified; an entire catalog is listed. See the section
"Catalog Search Order for LISTCAT" in topic 1.6.6 for a description of how
the catalog to be listed is selected.
Note to TSO users: When LISTCAT is invoked from a TSO terminal and no
operands are specified, the prefix of the TSO user becomes the highest
level of entryname qualification and only those entries with a matching
highest level of qualification are listed. It is as if you specified:
LISTCAT LEVEL(TSO user prefix)
[ALIAS][ALTERNATEINDEX][CLUSTER][DATA][GENERATIONDATAGROUP]
[INDEX][NONVSAM][PAGESPACE][PATH][SPACE][USERCATALOG]
specifies that certain types of entries are to be listed. Only those
entries whose type is specified are listed. For example, when you
specify CLUSTER but not DATA or INDEX, the cluster's entry is listed
and its associated data and index entries are not listed.
When you specify ENTRIES and also specify an entry type, the entryname
is not listed unless it is of the specified type. You can specify as
many entry types as desired. When you want to completely list a
catalog, do not specify any entry type.
ALIAS
specifies that alias entries are to be listed.
ALTERNATEINDEX
specifies that entries for alternate indexes are to be listed. If
ALTERNATEINDEX is specified and DATA and INDEX are not also
specified, entries for the alternate index's data and index
components are not listed.
Abbreviation: AIX
CLUSTER
specifies that cluster entries are to be listed. If CLUSTER is
specified and DATA and INDEX are not also specified, entries for
the cluster's data and index components are not listed.
Abbreviation: CL
DATA
specifies that entries for data components of clusters and
alternate indexes are to be listed.
GENERATIONDATAGROUP
specifies that entries for generation data groups are to be
listed.
Abbreviation: GDG
INDEX
specifies that entries for index components of key-sequenced
clusters and alternate indexes are to be listed. If a VSAM
object's name is specified and INDEX is coded, only the object's
index component entry is listed. When INDEX is the only entry
type parameter coded, the catalog's index component is not listed.
Abbreviation: IX
NONVSAM
specifies that entries for non-VSAM data sets are to be listed.
If a generation data group's name and non-VSAM are specified, the
generation data sets associated with the generation data group are
listed.
Abbreviation: NVSAM
PAGESPACE
specifies that entries for page spaces are to be listed.
Abbreviation: PGSPC
PATH
specifies that entries for paths are to be listed.
SPACE
specifies that entries for volumes containing data spaces defined
in this catalog are to be listed. Candidate volumes are included.
If entries are identified by entryname, SPACE can be coded only
when no other entry type parameter is coded.
Abbreviation: SPC
USERCATALOG
specifies that catalog connectors are to be listed. The user
catalog connector entries are in the master catalog. (User
catalog connector entries can also be in a user catalog, but the
operating system does not recognize them when searching for a user
catalog.)
Abbreviation: UCAT
CATALOG(catname[/password])
specifies the name of the catalog that contains the entries that are
to be listed. If CATALOG is coded, only entries from that catalog are
listed. See "Catalog Search Order for LISTCAT" in topic 1.6.6 for
information about the order in which catalogs are searched.
catname
is the name of the catalog.
password
specifies the read- or higher-level password of the catalog that
contains entries to be listed. Read or higher RACF authority to
the catalog is required. If the entries to be listed are password
protected, a password must be supplied either through this
parameter or through the ENTRIES parameter. If passwords are to
be listed, you must specify the master password. Alter RACF
authority to the catalog is required.
Abbreviation: CAT
CREATION(days)
specifies that entries of the indicated type, such as CLUSTER and
DATA, are to be listed only if they were created the specified number
of days ago or earlier.
days
specifies the number of days ago. The maximum number that can be
specified is 9999; zero indicates that all entries are to be
listed.
Abbreviation: CREAT
Note to TSO users: TSO will prefix the userid to the specified data
set name when the ENTRIES parameter is unqualified. The userid is not
prefixed when the LEVEL parameter is specified.
ENTRIES(entryname[/password]
[entryname[/password]...])
specifies the name or generic name of each entry to be listed.
(See the generic examples following the description of the LEVEL
parameter.) When you want to list the entries that describe a
user catalog, the catalog's volume must be physically mounted.
You then specify the catalog's name as the entryname. If you want
data space information, you must specify the volume serial number
(as the entryname) of the volume containing the data space; you
must also specify SPACE and no other entry type parameters.
password
specifies a password when the entry to be listed is password
protected and a password is not specified with the CATALOG
parameter. The password can be any of the entry's passwords.
The entry's protection attributes are listed only when you
specify the entry's (or its catalog's) master password. Alter
RACF authority to the catalog or entry is required.
Abbreviation: ENT
LEVEL(level)
specifies that all entries that match the level of qualification
specified by (level) are to be listed, irrespective of the number
of additional qualifiers. If a generic level name is specified,
only one qualifier replaces the *. The * must not be the last
character specified in the LEVEL parameter. LEVEL(A.*) will give
you an error message.
Abbreviation: LVL
1. A.A.B
2. A.B.B
3. A.B.B.C
4. A.B.B.C.C
5. A.C.C
6. A.D
7. A.E
8. A
When using a generic name with the ENTRIES parameter, entries must
have one qualifier in addition to those specified in the command.
When using the LEVEL parameter, associated entries (for example, data
and index entries associated with a cluster) are not listed unless
their names match the level of qualification.
EXPIRATION(days)
specifies that entries of the indicated type, such as CLUSTER and
DATA, are to be listed only if they will expire in the specified
number of days or earlier.
days
specifies the number of days. The maximum number that can be
specified is 9999 and it indicates that all entries are to be
listed. Any value that exceeds the year 2000 will default to
99.999 (in the format yyddd). Zero indicates that only entries
that have already expired are to be listed.
Abbreviation: EXPIR
NAME|HISTORY|VOLUME|ALLOCATION|ALL
specifies the fields to be included for each entry listed.
Appendix A, "Interpreting LISTCAT Output Listings" in topic A.0, shows
the listed information that results when you specify nothing (which
defaults to NAME), HISTORY, VOLUME, ALLOCATION, and ALL.
NAME
specifies that the name and entry type of the entries are to be
listed. Some entry types are listed along with their associated
entries. The entry type and name of the associated entry follow
the listed entry's name. For details, see "ASN: Associations
Group" in Appendix A, "Interpreting LISTCAT Output Listings" in
topic A.0.
Note to TSO users: Only the name of each entry associated with the
TSO user's prefix is listed when no other parameters are coded.
HISTORY
specifies that only the following information is to be listed for
each entry: name, entry type, ownerid, creation date, expiration
date, and for a recoverable catalog's entries, the catalog
recovery area's volume, device type, and control interval number.
It can be specified for ALTERNATEINDEX, CLUSTER, DATA,
GENERATIONDATAGROUP, INDEX, NONVSAM, PAGESPACE, and PATH.
Abbreviation: HIST
VOLUME
specifies that the information provided by specifying HISTORY plus
the volume serial numbers and device types allocated to the
entries, are to be listed. Volume information is only listed for
data and index component entries, data space (volume) entries,
non-VSAM data set entries, and user catalog connector entries.
Note to TSO users: Only the name and volume serial numbers
associated with the TSO user's prefix are listed when no other
parameters are coded.
Abbreviation: VOL
ALLOCATION
specifies that the information provided by specifying VOLUME plus
detailed information about the allocation are to be listed. The
information about allocation is listed only for data and index
component entries.
Abbreviation: ALLOC
ALL
specifies that all fields are to be listed.
NOTUSABLE
specifies that only those data and index entries with the notusable
indicator on are to be listed. A data or index component is marked
When the cataloged information is reset, the damaged entry and its
backup copy (in the catalog recovery area) might not match when the
space allocation information is compared. VSAM marks the catalog
entry "unusable" until the space allocation information is corrected.
See DFSMS/MVS V1R2 Managing Catalogs for more details.
Abbreviation: NUS
OUTFILE(ddname)
specifies a data set, other than the SYSPRINT data set, to receive the
output produced by LISTCAT (that is, the listed catalog entries).
Completion messages produced by access method services are sent to the
SYSPRINT data set, along with your job's JCL and input statements.
ddname
identifies a DD statement that describes the alternate target data
set. If OUTFILE is not specified, the entries are listed in the
SYSPRINT data set. If an alternate data set is specified, it must
meet the requirements in "For an Alternate Target Data Set" in
topic 1.4.2.6.
Abbreviation: OFILE
Subtopics
3.22.2.1 Listing a Key-Sequenced Cluster's Entry in a Catalog: Example 1
3.22.2.2 Alter a Catalog Entry, Then List the Modified Entry: Example 2
3.22.2.3 List Catalog Entries: Example 3
The LISTCAT command lists the cluster's catalog entry. It is assumed that
the high level of the qualified cluster name is the same as the alias of
the catalog D27UCAT1; this naming convention directs the catalog search to
the appropriate catalog.
ALL specifies that all fields of the cluster entry are to be listed.
3.22.2.2 Alter a Catalog Entry, Then List the Modified Entry: Example 2
The free space attributes for the data component (KSDATA) of cluster
MYDATA are modified. Next, the cluster entry, data entry, and index entry
of MYDATA are listed to determine the effect, if any, the modification has
on the cluster's other attributes and specifications.
FREESPACE specifies the new free space percentages for the data
component's control intervals and control areas.
The IF ... THEN command sequence verifies that the ALTER command completed
successfully before the LISTCAT command executes.
All catalog entries with the same generic name, GENERIC.*.BAKER (where "*"
is any 1- to 8-character simple name), are listed.
3.23 LISTCRA
+------------------------------------------------------------------------+
¦ LISTCRA ¦ INFILE(ddname[ ddname...]) ¦
¦ ¦ [CATALOG(catname[/password] ddname)] ¦
¦ ¦ [COMPARE|NOCOMPARE] ¦
¦ ¦ [DUMP|NAME|SEQUENTIALDUMP] ¦
¦ ¦ [MASTERPW(password)] ¦
¦ ¦ [OUTFILE(ddname)] ¦
+------------------------------------------------------------------------+
Subtopics
3.23.1 LISTCRA Parameters
3.23.2 LISTCRA Example
Subtopics
3.23.1.1 Required Parameters
3.23.1.2 Optional Parameters
INFILE(ddname[ ddname...])
identifies the DD statement(s) that describes the catalog recovery
area's volume. You can list or compare more than one catalog recovery
area. However, if COMPARE is specified, all volumes whose catalog
recovery areas are listed must be owned by the same VSAM catalog.
CATALOG(catname[/password] ddname)
identifies the catalog that owns the volume(s) identified with the
INFILE parameter. The CATALOG parameter is required when you specify
the COMPARE option either with the DUMP or NAME output format.
CATALOG cannot be specified with SEQUENTIALDUMP.
password
When the catalog is password protected, you must supply the
catalog's master password. The password is required, even though
the master catalog's password may have been supplied in the
MASTERPW parameter. Alter RACF authority to the catalog is
required.
ddname
When CATALOG is specified, you must describe and allocate the
catalog to be compared with a DD statement. ddname identifies the
catalog's DD statement, and is required when you specify the
CATALOG parameter. You cannot specify JOBCAT or STEPCAT as the
ddname. However, if the catalog being compared is not the VSAM
master catalog, you must also identify the catalog by a STEPCAT or
JOBCAT DD statement in addition to the DD statement referenced by
ddname.
Abbreviation: CAT
COMPARE|NOCOMPARE
specifies whether the list is to be limited to those entries in the
catalog recovery area that do not match their corresponding catalog
entries.
COMPARE
When you specify COMPARE, only those entries that do not match are
listed. All the catalog's entries are compared, except the
catalog's self-describing records. You must identify the catalog
(that contains the catalog entries that are still to be compared)
with the CATALOG parameter.
Note: If you specify the COMPARE option, page space entries will
always result in a mismatch. This is a normal condition and does
not require any corrective action. The mismatch is caused by the
OPEN indicator not being set in the page space record in the CRA,
whereas it is set in the catalog.
Abbreviation: CMPR
NOCOMPARE
When you specify NOCOMPARE (or allow it to default), all the
Abbreviation: NCMPR
DUMP|NAME|SEQUENTIALDUMP
specifies the amount of cataloged information to be listed.
DUMP
specifies that each listed entry is printed in its entirety in
both hexadecimal and character form. Records are listed
alphanumerically and grouped by components.
NAME
specifies that each listed entry includes only the entry's name,
its volume serial numbers, and the name and entry type of each
associated entry. All listed entries are sorted alphanumerically
and grouped.
SEQUENTIALDUMP
specifies that each listed entry is to be printed in its entirety
in both hexadecimal and character form. Records are listed in the
sequence in which they appear in the catalog recovery area.
Abbreviation: SDUMP
MASTERPW(password)
specifies the master catalog's master password. This parameter is
required when the master catalog is password-protected.
Abbreviation: MRPW
OUTFILE(ddname)
identifies the DD statement that describes an alternate target data
set. See "For an Alternate Target Data Set" in topic 1.4.2.6 for more
details about alternate target data sets.
Abbreviation: OFILE
Subtopics
3.23.2.1 Listing a Catalog Recovery Area
The catalog recovery areas for the volumes (SG2001 and VSER04) owned by
VSAM master catalog (AMASTCAT) are listed in dump format and the catalog
recovery areas are compared with the actual catalog records.
LISTCRA -
INFILE( -
CRAVOL1 -
CRAVOL2) -
MASTERPW(MCATMRPW) -
COMPARE -
DUMP -
CATALOG(AMASTCAT/MCATMRPW CATVOL)
/*
CRAVOL1 DD identifies and allocates the volume that contains the first
catalog recovery area to be listed.
DUMP specifies that the results of the record comparison (the LISTCRA
output listing) are to be printed in dump format.
3.24 PRINT
The PRINT command prints VSAM data sets, non-VSAM data sets, and catalogs.
The syntax of this command is:
+------------------------------------------------------------------------+
¦ PRINT ¦ {INFILE(ddname[/password])| ¦
¦ ¦ INDATASET(entryname[/password])} ¦
¦ ¦ [CHARACTER|DUMP|HEX] ¦
¦ ¦ [FROMKEY(key)|FROMADDRESS(address)| ¦
¦ ¦ FROMNUMBER(number)|SKIP(number)] ¦
¦ ¦ [OUTFILE(ddname)] ¦
¦ ¦ [TOKEY(key)|TOADDRESS(address)| ¦
¦ ¦ TONUMBER(number)|COUNT(number)] ¦
+------------------------------------------------------------------------+
Subtopics
3.24.1 PRINT Parameters
3.24.2 PRINT Examples
Subtopics
3.24.1.1 Required Parameters
3.24.1.2 Optional Parameters
INFILE(ddname[/password])|
INDATASET(entryname[/password])
identifies the data set or component to be printed. If the logical
record length of a non-VSAM source data set is greater than 32760
bytes, your PRINT command will terminate with an error message.
INFILE(ddname[/password])
specifies the name of the DD statement that identifies the data
set or component to be printed. You can list a base cluster in
alternate-key sequence by specifying a path name as the data set
name in the DD statement.
Abbreviation: IFILE
INDATASET(entryname[/password])
specifies the name of the data set or component to be printed. If
INDATASET is specified, the entryname is dynamically allocated.
You can list a base cluster in alternate-key sequence by
specifying a path name as entryname.
password
Passwords apply only to VSAM data sets and their components.
If a VSAM data set or component is password protected, you
must supply:
Abbreviation: IDS
CHARACTER|DUMP|HEX
specifies the format of the listing.
Note: For the CHARACTER and DUMP parameters, setting the GRAPHICS
parameter of the PARM command determines which bit patterns print as
characters. See "PARM Command" in topic 2.6 for more information.
CHARACTER
specifies that each byte in the logical record is to be printed as
a character. Bit patterns not defining a character are printed as
periods. Key fields are listed in character format (see
Figure 3).
Abbreviation: CHAR
--------------------------------------------------------------------------
ABCD000000000001ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ012345
6789ABCDEFGHIJKLMNOPQRSTUVWXYZ012345
6789ABCDEFGHIJKLMNOPQRSTRUVWYZ0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789ABCDEFGH
IJKLMNOPQRSTUVWXYZ0123456789ABCDEFGH
IJKLMNOPQRSTUVWYZY0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789ABCDEFGHIJKLMNOPQRST
UVWXYZ0123456789ABCDEFGHIJKLMNOPQRST
UVWXYZ0123456789ABCDEFGHIJKLMNOPQRST....
--------------------------------------------------------------------------
Figure 3. Example of Character Format of PRINT Command
DUMP
specifies that each byte in the logical record is to be printed in
both hexadecimal and character format. In the character portion
of the listing, bit patterns not defining a character are printed
as periods. Key fields are listed in hexadecimal format (see
Figure 4).
--------------------------------------------------------------------------
--------------------------------------------------------------------------
Figure 4. Example of Dump Format of PRINT Command
HEX
specifies that each byte in the logical record is to be printed as
two hexadecimal digits. Key fields are listed in hexadecimal
format (see Figure 5).
--------------------------------------------------------------------------
C1C2C3C4F0F0F0F0F0F0F0F0F0F0F0F1C1C2C3C4C5C6C7C8C9D1D2D3D4D5D6D7D8D9E2E3E4E5E5E6E7E8
F9F1F2F3F4F5F6F7F8F9C1C2C3C4C5C6C7C8
C9D1D2D3D4D5D6D7D8D9E2D3D4E5E6E7E8E9F0F1F2F3F4F5F6F7F8F9C1C2C3C4C5C6C7C8C9D1D2D3D4D5
D6D7D8D9E2E3E4E5E6E7E8E9F0F1F2F3F4F5
F6F7F8F9C1C2C3C4C5C6C7C8C9D1D2D3D4D5D6D7D8D9E2E3E4E5E6E7E8E9F0F1F2F3F4F5F6F7F8F9C1C2
C3C4C5C6C7C8C9D1D2D3D4D5D6D7D8D9E2E3
E4E5E6E7E8E9F0F1F2F3F4F5F6F7F8F9C1C2C3C4C5C6C7C8C9D1D2D3D4D5D6D7D8D9E2E3E4E5E6E7E8E9
F0F1F2F3F4F5F6F7F8F9C1C2C3C4C5C6C7C8
C9D1D2D3D4D5D6D7D8D9E2E3E4E5E6E7E8E9F0F1F2F3F4F5F6F7F8F9C1C2C3C4C5C7C7C8C9D1D2D3D4D5
D6D7D8D9E2E3E4E5E6E7E8E9F0F1F2F3F4F5
F6F7F8F9C1C2C3C4C5C6C7C8C9D1D2D3D4D5D6D7D8D9E2E3E4E5E6E7E8E9F0F1F2F3F4F5F6F7F8F9C1C2
C3C4C5C6C7C8C9D1D2D3D4D5D6D7D8D9E2E3
E4E5E6E7E8E9F0F1F2F3F4F5F6F7F8F9C1C2C3C4C5C6C7C8C9D1D2D3D4D5D6D7D8D9E2E300000000
--------------------------------------------------------------------------
Figure 5. Example of Hexadecimal Format of PRINT Command
FROMKEY(key)|FROMADDRESS(address)|
FROMNUMBER(number)|SKIP(number)
specifies the location in the data set being listed from which listing
is to start. If you do not specify a value, the listing begins with
the first logical record in the data set or component. The only value
that can be specified for a SAM data set is SKIP.
FROMKEY(key)
specifies the key of the first record you want listed. You can
specify generic keys (that is, a portion of the key followed by
*). If you specify generic keys, listing begins at the first
record whose key matches that portion of the key you specified.
You cannot specify a key longer than that defined for the data
set. If you do, the listing is not performed. If the specified
key is not found, the next higher key is used as the starting
point for the listing.
key
can contain 1 to 255 EBCDIC characters.
Abbreviation: FKEY
FROMADDRESS(address)
specifies the relative byte address (RBA) of the first record you
want listed. The RBA value must be the beginning of a logical
record. If you specify this parameter for a key-sequenced data
set, the listing will be in physical sequential order instead of
in logical sequential order.
Abbreviation: FADDR
FROMNUMBER(number)
specifies the relative record number of the first record you want
printed. FROMNUMBER can only be specified for VSAM relative
record data sets.
Abbreviation: FNUM
SKIP(number)
specifies the number of logical records you want to skip before
the listing of records begins. For example, if you want the
listing to begin with record number 500, you specify SKIP(499).
SKIP should not be specified when you are accessing the data set
through a path; the results are unpredictable.
address, number
can be specified in decimal (n), hexadecimal (X'n'), or binary
(B'n'). The specification cannot be longer than one fullword.
OUTFILE(ddname)
identifies a target data set other than SYSPRINT. For ddname,
substitute the name of the JCL statement that identifies the alternate
target data set.
The access method services target data set for listings, which is
identified by the ddname SYSPRINT, is the default. The target data
set must meet the requirements stated in "For a Target Data Set" in
topic 1.4.2.5.
Abbreviation: OFILE
TOKEY(key)|TOADDRESS(address)|
TONUMBER(number)|COUNT(number)
specifies the location in the data set being listed at which you want
the listing to stop. If no value is specified, the listing ends with
the logical end of the data set or component. The only value that can
be specified for a SAM data set is COUNT. The location at which the
listing is to stop must follow the location at which the listing is to
begin.
TOKEY(key)
specifies the key of the last record to be listed. You can
specify generic keys (that is, a portion of the key followed by
*). If you specify generic keys, listing stops after the last
record is listed whose key matches that portion of the key you
specified. If you specify a key longer than that defined for the
data set, the listing is not performed.
If the specified key is not found, the next lower key is used as
the stopping point for the listing.
key
can contain 1 to 255 EBCDIC characters.
TOADDRESS(address)
specifies the relative byte address (RBA) of the last record you
want listed.
Abbreviation: TADDR
TONUMBER(number)
specifies the relative record number of the last record you want
printed. TONUMBER can only be specified for a VSAM relative
record data set.
Abbreviation: TNUM
COUNT(number)
specifies the number of logical records to be listed. COUNT
should not be specified when you are accessing the data set
through a path; the results are unpredictable.
address, number
can be specified in decimal (n), hexadecimal (X'n'), or binary
(B'n'); the specification cannot be longer than one fullword.
Subtopics
3.24.2.1 Print a Catalog: Example 1
3.24.2.2 Print a Key-Sequenced Cluster's Data Records in a Catalog: Example 2
3.24.2.3 Copy Records from a Non-VSAM Data Set into an Entry-Sequenced VSAM
Cluster, Then Print the Records: Example 3
The first PRINT command prints the low-key range of the catalog.
Command parameters:
The second PRINT command prints the high-key range of the catalog.
Command parameters:
The third PRINT command prints one catalog record from the low-key range
of the catalog.
Command parameters:
FROMKEY specifies that printing is to begin with the record whose key
is X'0000000E' in the first 4 bytes. Records in the low-key range of
a VSAM catalog have the number of the containing control interval as
the first 4 bytes of their key. Records are 505 bytes long and a
512-byte control interval contains each record.
The fourth PRINT command prints the entire catalog (no delimiting
parameters are specified).
The PRINT command parameters, INDATASET, names the data set to be printed.
Access method services prints all the cluster's data records because none
of the delimiting parameters (COUNT, FROMADDRESS, FROMKEY, SKIP, TOKEY, or
TOADDRESS) are specified. Each record is printed in the DUMP format
because neither HEX nor CHAR is specified. An example of the printed
record is shown in Figure 6.
--------------------------------------------------------------------------
--------------------------------------------------------------------------
Figure 6. Example of the Printed Record in DUMP Format (Result of Print
Command)
3.24.2.3 Copy Records from a Non-VSAM Data Set into an Entry-Sequenced VSAM
Cluster, Then Print the Records: Example 3
The first 15 records from a non-VSAM data set, EXAMPLE.NONVSAM, are copied
into an entry-sequenced cluster, D50.EXAMPLE.ESDS1. If the records are
copied correctly, the cluster's records are printed in hexadecimal format.
Even if the records are not copied correctly, the non-VSAM data set's
first 15 records are printed in character format.
JOBCAT DD makes two catalogs available for this job: USERCAT4 and
D27UCAT2. Concatenated JOBCAT DD statements were used to identify
both catalogs.
The IF ... THEN command sequence verifies that the REPRO command completes
successfully before the first PRINT command executes.
The first PRINT command prints the records in the entry-sequenced cluster,
D50.EXAMPLE.ESDS1.
--------------------------------------------------------------------------
RBA OF RECORD = 0
C2D6E8C5D940404040404040404040404040404040404040404040404040404040404040404040404040
404040404040404040404040404040404040
4040404040404040404040404040404040404040
--------------------------------------------------------------------------
Figure 7. Example of the Printed Record in Hexadecimal (Result of PRINT
Command)
Note: The IF ... THEN command sequence ends with the HEX parameter
because no continuation character follows. If you want two or more
access method services commands to execute only when the IF statement
is satisfied, enclose the commands in a DO...END command sequence.
For a description of IF-THEN-ELSE commands, see "IF-THEN-ELSE Command
Sequence" in topic 2.1.
The second PRINT command executes even if the REPRO command fails and
prints the first 15 records of the non-VSAM data set, EXAMPLE.NONVSAM.
--------------------------------------------------------------------------
CLARK
--------------------------------------------------------------------------
Figure 8. Example of a Printed Alphanumeric Character Record (Result of
PRINT Command)
3.25 REPRO
The REPRO command copies VSAM and non-VSAM data sets, copies catalogs, and
unloads and reloads VSAM catalogs. The syntax of this command is:
+------------------------------------------------------------------------+
¦ REPRO ¦ {INFILE(ddname[/password] ¦
¦ ¦ [ ENVIRONMENT(DUMMY)])| ¦
¦ ¦ INDATASET(entryname[/password] ¦
¦ ¦ [ ENVIRONMENT(DUMMY)])} ¦
¦ ¦ {OUTFILE(ddname[/password])| ¦
¦ ¦ OUTDATASET(entryname[/password])} ¦
¦ ¦ [FROMKEY(key)|FROMADDRESS(address)| ¦
¦ ¦ FROMNUMBER(number)|SKIP(count)] ¦
¦ ¦ [REPLACE|NOREPLACE] ¦
¦ ¦ [REUSE|NOREUSE] ¦
¦ ¦ [TOKEY(key)|TOADDRESS(address)| ¦
¦ ¦ TONUMBER(number)|COUNT(count)] ¦
¦ ¦ ¦
¦ ¦ [ENCIPHER ¦
¦ ¦ ({EXTERNALKEYNAME(key name)| ¦
¦ ¦ INTERNALKEYNAME(key name)|PRIVATEKEY} ¦
¦ ¦ [CIPHERUNIT(number|1)] ¦
¦ ¦ [DATAKEYFILE(ddname)|DATAKEYVALUE(value)] ¦
¦ ¦ [SHIPKEYNAMES(key name[ key name...])] ¦
¦ ¦ [STOREDATAKEY|NOSTOREDATAKEY] ¦
¦ ¦ [STOREKEYNAME(key name)] ¦
¦ ¦ [USERDATA(value)])] ¦
¦ ¦ ¦
¦ ¦ [DECIPHER ¦
¦ ¦ ({DATAKEYFILE(ddname)| ¦
¦ ¦ DATAKEYVALUE(value)|SYSTEMKEY} ¦
¦ ¦ [SYSTEMDATAKEY(value)] ¦
¦ ¦ [SYSTEMKEYNAME(key name)])] ¦
+------------------------------------------------------------------------+
Note: The parameters ENCIPHER and DECIPHER apply only with the IBM
Programmed Cryptographic Facility (5740-XY5) or the IBM Cryptographic Unit
Support (5740-XY6). (For more information, see DFSMS/MVS V1R2 Using Data
Sets.)
Subtopics
3.25.1 REPRO Parameters
3.25.2 Cryptographic Parameters
3.25.3 REPRO Examples
Subtopics
3.25.1.1 Required Parameters
3.25.1.2 Optional Parameters
INFILE(ddname[/password][ ENVIRONMENT(DUMMY)])|
INDATASET(entryname[/password][ ENVIRONMENT(DUMMY)] )
identifies the source data set to be copied. If the logical record
length of a non-VSAM source data set is greater than 32760 bytes, your
REPRO command will terminate with an error message.
INFILE(ddname[/password])
specifies the name of the DD statement that identifies the data
set to be copied. You can copy a base cluster in alternate-key
sequence by specifying a path name as the data set name in the DD
statement.
Abbreviation: IFILE
INDATASET(entryname[/password])
specifies the name of the entry to be copied. If INDATASET is
specified, the entryname is dynamically allocated.
Abbreviation: IDS
password
is the read- or higher-level password of the data to be
copied. If the data set is password-protected, the read
password must be supplied. If a catalog is to be copied, the
master password is required. Passwords are applicable only to
VSAM data sets.
ENVIRONMENT (DUMMY)
specifies that dummy ISAM records are to be copied. Dummy records
are records with hexadecimal 'FF' in the first byte.
OUTFILE(ddname[/password])|OUTDATASET(entryname[/password])
identifies the target data set. ISAM data sets cannot be specified as
target data sets. If a VSAM data set defined with a record length
greater than 32760 bytes is to be copied to a sequential data set,
your REPRO command will terminate with an error message.
OUTFILE(ddname[/password])
specifies the name of a DD statement that identifies the target
data set. For VSAM data sets, the data set name can be that of a
path. If the DD statement identifies a SYSOUT data set, the
Abbreviation: OFILE
OUTDATASET(entryname[/password])
specifies the name of the target data set. If OUTDATASET is
specified, the entryname is dynamically allocated. For VSAM data
sets, entryname can be that of a path.
password
specifies the update- or higher-level password for a
password-protected target data set or path.
Abbreviation: ODS
FROMKEY(key)|FROMADDRESS(address)|
FROMNUMBER(number)|SKIP(number)
specifies the location in the source data set from which copying is to
start. If no value is coded, the copying begins with the first
logical record in the data set. You can use only one of the four
choices.
SKIP is the only parameter that can be used for a SAM data set.
FROMKEY(key)
specifies the key of the first record you want copied. If you
specify generic keys (a portion of the key followed by *), copying
begins at the first record with a key matching the portion of the
key you specified. You cannot specify a key longer than that
defined for the data set. If you do, the data set is not copied.
If the specified key is not found, the next higher key is used as
the starting point for copying.
key
can contain 1 to 255 EBCDIC characters.
Abbreviation: FKEY
FROMADDRESS(address)
specifies the relative byte address (RBA) of the first record you
want copied. The RBA value must be the beginning of a logical
record. If you specify this parameter for key-sequenced data, the
records will be copied in physical sequential order instead of
logical sequential order.
FROMADDRESS:
Abbreviation: FADDR
FROMNUMBER(number)
specifies the relative record number of the first record you want
copied. FROMNUMBER can be specified only when you copy a relative
record data set.
Abbreviation: FNUM
SKIP(number)
specifies the number of logical records you want to skip before
beginning to copy records. For example, if you want to copy
beginning with record number 500, you specify SKIP(499).
SKIP should not be specified when you access the data set through
a path; the results are unpredictable.
address, number
can be specified in decimal (n), hexadecimal (X'n'), or binary
(B'n') form; the specification cannot be longer than one fullword.
REPLACE|NOREPLACE
specifies whether a record in the source cluster (INFILE or INDATASET)
is to replace a record in the target cluster (OUTFILE or OUTDATASET)
when the source cluster is copied into the target cluster.
When the source cluster is copied, its records might have keys or
relative record numbers identical to the keys or relative record
numbers of data records in the target cluster. When this is the case,
the source record replaces the target record.
REPLACE
When a key-sequenced data set, other than a catalog, is copied,
each source record whose key matches a target record's key
replaces the target record. Otherwise, the source record is
inserted into its appropriate place in the target cluster.
Abbreviation: REP
NOREPLACE
When a key-sequenced data set, other than a catalog, is copied,
target records are not replaced by source records. For each
source record whose key matches a target record's key, a
"duplicate record" message is issued.
When a relative record data set is copied, target records are not
replaced by source records. For each source record whose relative
record number identifies a target data record instead of an empty
slot, a "duplicate record" message is issued.
Abbreviation: NREP
REUSE|NOREUSE
specifies whether the target data set is to be opened as a reusable
data set. This parameter is valid only for VSAM data sets.
REUSE
specifies that the target data set, specified with OUTFILE or
OUTDATASET, is opened as a reusable data set regardless of whether
or not it was defined as reusable with the REUSE parameter. (See
the DEFINE CLUSTER command description.) If the data set was
defined with REUSE, its high-used relative byte address (RBA) is
reset to zero (that is, the data set is effectively empty) and the
operation proceeds.
If REUSE is specified and the data set was originally defined with
the NOREUSE option, the data set must be empty; otherwise, the
REPRO command terminates with an error message.
Abbreviation: RUS
NOREUSE
specifies that records are to be written at the end of an
entry-sequenced data set when OUTFILE or OUTDATASET identifies a
nonempty data set.
Abbreviation: NRUS
TOKEY(key)|TOADDRESS(address)|
TONUMBER(number)|COUNT(number)
specifies the location in the data set being copied at which copying
is to end. The location at which the copying is to end must follow
the location at which it is to begin. If no value is coded, the
copying ends with the logical end of the data set or component. You
can use only one of the four choices.
COUNT is the only parameter that can be specified for a SAM dataset.
TOKEY(key)
specifies the key of the last record you want copied. You can
specify generic keys (that is, a portion of the key followed by
*). If you specify generic keys, copying stops after the first
record encountered that matches your key specifications. You
cannot specify a key longer than that defined for the data set.
If you do, the data set is not copied. If the specified key is
not found, the next lower key is used as the end point for
copying. TOKEY can be specified only when an alternate index, a
key-sequenced data set, or an indexed-sequential (ISAM) non-VSAM
data set is being copied.
key
can contain 1 to 255 EBCDIC characters.
TOADDRESS(address)
specifies the relative byte address (RBA) of the last record you
want copied. Unlike FROMADDRESS, the RBA value does not need to
be the beginning of a logical record. The entire record
containing the specified RBA is copied.
Abbreviation: TADDR
TONUMBER(number)
specifies the relative record number of the last record you want
copied. TONUMBER can be specified only when you copy a relative
record data set.
Abbreviation: TNUM
COUNT(number)
specifies the number of logical records you want copied. COUNT
should not be specified when you access the data set through a
path; the results are unpredictable.
address or number
can be expressed in decimal (n), hexadecimal (X'n'), or binary
ENCIPHER
specifies that the source data set is to be enciphered as it is copied
to the target data set.
Abbreviation: ENCPHR
EXTERNALKEYNAME(key name) |
INTERNALKEYNAME(key name) |PRIVATEKEY
specifies whether keys are managed privately by you, by the
Programmed Cryptographic Facility, or by the Cryptographic Unit
Support.
EXTERNALKEYNAME(key name)
specifies that keys are to be managed by the Programmed
Cryptographic Facility or by the Cryptographic Unit Support
and supplies the 1- to 8-character key name of the external
file key to be used to encipher the data encrypting key. The
key is only known by the system deciphering it. The key name
and its corresponding enciphered data encrypting key will only
be listed in SYSPRINT if NOSTOREDATAKEY is specified.
Abbreviation: EKN
INTERNALKEYNAME(key name)
specifies that keys are to be managed by the Programmed
Cryptographic Facility or the Cryptographic Unit Support and
supplies the 1- to 8-character key name of the internal file
key to be used to encipher the data encrypting key. The key
is retained by the system creating the key. The key name and
its corresponding enciphered data encrypting key will only be
listed in SYSPRINT if NOSTOREDATAKEY is specified.
Abbreviation: IKN
PRIVATEKEY
specifies that the key is to be managed by you.
Abbreviation: PRIKEY
CIPHERUNIT(number |1)
specifies that multiple logical source records are to be
enciphered as a unit.
number
specifies the number of records that are to be enciphered
together. By specifying that multiple records are to be
enciphered together, you can improve your security (chaining
is performed across logical record boundaries) and also
improve your performance. However, there is a corresponding
increase in main storage requirements. The remaining records
in the data set, after the last complete group of multiple
records, will be enciphered as a group. For example if number
is 5 and there are 22 records in that data set, the last 2
Abbreviation: CHPRUN
DATAKEYFILE(ddname)|DATAKEYVALUE(value)
specifies that you are supplying a plaintext (not enciphered) data
encrypting key. If one of these parameters is not specified,
REPRO will generate the data encrypting key. These parameters are
only valid when EXTERNALKEYNAME or PRIVATEKEY is specified. If
INTERNALKEYNAME and DATAKEYVALUE or DATAKEYFILE are specified,
REPRO will generate the data encrypting key and DATAKEYVALUE or
DATAKEYFILE will be ignored by REPRO.
DATAKEYFILE(ddname)
identifies a data set that contains the plaintext data
encrypting key. For ddname, substitute the name of the JCL
statement that identifies the data encrypting key data set.
Abbreviation: DKFILE
DATAKEYVALUE(value)
specifies the 8-byte value to be used as the plaintext data
encrypting key to encipher the data.
value
consists of 1 to 8 EBCDIC characters or 1 to 16
hexadecimal characters coded (X'n'). value must be
enclosed in single quotation marks if it contains commas,
semicolons, blanks, parentheses, or slashes. A single
quotation mark must be coded as two single quotation
marks. With either EBCDIC or hexadecimal representation,
value is padded on the right with blanks (X'40') if it is
fewer than 8 characters.
Abbreviation: DKV
Abbreviation: SHIPKN
STOREDATAKEY|NOSTOREDATAKEY
specifies whether the enciphered data encrypting key is to be
stored in the target data set header. The key used to encipher
the data encrypting key will be that identified by INTERNALKEYNAME
or EXTERNALKEYNAME. This parameter is only valid when
INTERNALKEYNAME or EXTERNALKEYNAME is specified. If the
enciphered data encrypting key is stored in the data set header,
it does not have to be supplied by the user when the data is
deciphered.
STOREDATAKEY
specifies that the enciphered data encrypting key is to be
stored in the target data set header.
Abbreviation: STRDK
NOSTOREDATAKEY
specifies that the enciphered data encrypting key is not to be
stored in the target data set header. The key name and its
corresponding enciphered data encrypting key will be listed in
SYSPRINT.
Abbreviation: NSTRDK
STOREKEYNAME(key name)
specifies whether a key name for the key used to encipher the data
encrypting key is to be stored in the target data set header. The
key name specified must be the name by which the key is known on
the system on which the REPRO DECIPHER is to be performed. This
key name must be the same one that was specified in
INTERNALKEYNAME if REPRO DECIPHER is to be run on the same system,
but can be a different key name than that specified in
INTERNALKEYNAME or EXTERNALKEYNAME if REPRO DECIPHER is to be run
on a different system.
Abbreviation: STRKN
USERDATA(value)
value
consists of 1 to 32 EBCDIC characters. If value contains a
special character, enclose the value in single quotation marks
(for example, USERDATA('*CONFIDENTIAL*')). If the value
contains a single quotation mark, code the embedded quotation
mark as two single quotation marks (for example,
USERDATA('COMPANY''S')).
Abbreviation: UDATA
DECIPHER
specifies that the target data set is to contain a plaintext
(deciphered) copy of the enciphered source data set.
Abbreviation: DECPHR
DATAKEYFILE(ddname)|DATAKEYVALUE(value)|SYSTEMKEY
specifies whether keys are to be managed by you, by the Programmed
Cryptographic Facility, or by the Cryptographic Unit Support.
DATAKEYFILE(ddname)
specifies that the key is to be managed by you and identifies
a data set that contains the private data encrypting key used
to encipher the data. For ddname, substitute the name of the
JCL statement that names the data set containing the private
data encrypting key.
Abbreviation: DKFILE
DATAKEYVALUE(value)
specifies that the key is to be managed by you, and supplies
the 1- to 8-byte value that was used as the plaintext private
data encrypting key to encipher the data. For a discussion of
how the method of supplying the data encrypting key relates to
the security of the key, see DFSMS/MVS V1R2 Using Data Sets.
value
consists of 1 to 8 EBCDIC characters. value must be
enclosed in single quotation marks if it contains commas,
semicolons, blanks, parentheses, or slashes. A single
quotation mark contained within value must be coded as two
single quotation marks. You can code value in hexadecimal
form, (X'n'). value can contain 1 to 16 hexadecimal
characters, resulting in 1 to 8 bytes of information.
With either EBCDIC or hexadecimal representation, value is
padded on the right with blanks (X'40') if it is less than
8 characters.
Abbreviation: DKV
SYSTEMKEY
specifies that keys are to be managed by the Programmed
Cryptographic Facility or by the Cryptographic Unit Support.
Abbreviation: SYSKEY
SYSTEMDATAKEY(value)
specifies the 1- to 8-byte value representing the enciphered
system data encrypting key used to encipher the data. This
parameter is only valid if SYSTEMKEY is specified. If
SYSTEMDATAKEY is not specified, REPRO will obtain the enciphered
system data encrypting key from the source data set header, in
which case, STOREDATAKEY must have been specified when the data
set was enciphered.
value
consists of 1 to 8 EBCDIC characters. value must be enclosed
in single quotation marks if it contains commas, semicolons,
blanks, parentheses, or slashes. A single quotation mark must
be coded as two single quotation marks. You can code value in
hexadecimal form, (X'n'). value can contain 1 to 16
hexadecimal characters, resulting in 1 to 8 bytes of
information. With either EBCDIC or hexadecimal
representation, value is padded on the right with blanks
(X'40') if it is fewer than 8 characters.
Abbreviation: SYSDK
SYSTEMKEYNAME(key name)
specifies the 1- to 8-character key name of the internal key that
was used to encipher the data encrypting key. This parameter is
only valid if SYSTEMKEY is specified. If SYSTEMKEYNAME is not
specified, REPRO will obtain the key name of the internal key from
the source data set header, in which case, STOREKEYNAME must have
been specified when the data set was enciphered.
Abbreviation: SYSKN
Subtopics
3.25.3.1 Copy Records into a Key Sequenced Data Set: Example 1
3.25.3.2 Copy Records into a VSAM Data Set: Example 2
3.25.3.3 Copy a Catalog: Example 3
3.25.3.4 Unload a VSAM User Catalog: Example 4
3.25.3.5 Reload an Unloaded VSAM User Catalog: Example 5
3.25.3.6 Encipher Using System Keys: Example 6
3.25.3.7 Decipher Using System Keys: Example 7
3.25.3.8 Encipher Using Private Keys: Example 8
3.25.3.9 Decipher Using Private Keys: Example 9
Data records are copied from the non-VSAM sequential data set SEQ.D27V
into a key-sequenced VSAM data set, D40.MYDATA. Next, records are copied
from the key-sequenced data set, D40.MYDATA, into an entry-sequenced data
set, ENTRY.
STEP1: Access method services copies records from a sequential data set,
SEQ.D27V, into a key-sequenced data set, D40.MYDATA. STEP1's job control
language statements:
STEP1's REPRO command copies all records from the source data set,
SEQ.D27V, to the target data set, D40.MYDATA. STEP1's REPRO command
parameters:
OUTDATASET identifies the key-sequenced data set into which the source
records are to be copied. The data set is dynamically allocated by
access method services.
STEP2's REPRO command copies records from the source data set, D40.MYDATA,
to the target data set, ENTRY. Only those records with key values from
DEAN to, and including, JOHNSON are copied. STEP2's REPRO command
parameters:
FROMKEY and TOKEY specify the lower and upper key boundaries. Only
those records with key values from DEAN to, and including, JOHNSON are
copied.
If ENTRY already contains records, VSAM merges the copied records with
ENTRY's records. A subsequent job step could resume copying the records
into ENTRY, beginning with the records with key greater than JOHNSON. If
you subsequently copied records with key values less than DEAN into ENTRY,
VSAM merges them with ENTRY's records.
/*
//STEP6 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=A
//SYSIN DD *
DEFINE ALIAS -
(NAME(MYCAT) -
RELATE(COPYUCAT) )
/*
MASTERPW and UPDATEPW specify the master and update level passwords
for the catalog.
STEP2: Access method services copies the contents of MYCAT into COPYUCAT.
STEPCAT DD makes two catalogs available for this job step: COPYUCAT
and MYCAT. The DD statements that identify the catalogs are
concatenated.
The REPRO command copies all records from MYCAT into COPYUCAT. Access
method services treats each catalog as a key-sequenced data set and copies
each catalog record. Consequently, the first 13 catalog records of MYCAT,
which describe MYCAT as a key-sequenced data set, are also copied into
COPYUCAT. Entries from MYCAT are written into COPYUCAT beginning with
INDATASET identifies the source data set, MYCAT. VSAM assumes that
MYCAT is cataloged in either MYCAT or COPYUCAT.
STEP3: The EXPORT command removes MYCAT's user catalog connector entry
from the master catalog. MYCAT's cataloged objects are now not available
to the system. (STEP6 builds an alias entry that relates MYCAT to
COPYUCAT, making the cataloged objects available to the system again.)
STEP4: Access method services lists the name of each entry in the new
catalog, COPYUCAT. The STEPCAT DD statement identifies the catalog to be
listed.
LISTCAT cannot run in a job step where the catalog is empty when it is
opened. To ensure that the LISTCAT correctly reflects the contents of the
catalog, the LISTCAT was run as a separate job step.
STEP6: Access method services builds an alias entry that relates MYCAT to
COPYUCAT. Because no CATALOG parameter or JOBCAT or STEPCAT DD statement
identifies the catalog that is to contain the alias entry, VSAM assumes
the entry is to be written into the master catalog.
When MYCAT was defined, it was defined on volume VSER04. Its catalog
entries describe VSAM objects on that volume. COPYUCAT is defined on
volume VSER06. Because MYCAT was copied into COPYUCAT (and MYCAT no
longer exists as a user catalog), COPYUCAT entries now describe VSAM
objects on volumes VSER04 and VSER06.
A VSAM user catalog is reloaded from the backup copy (created in the
previous example), using the catalog unload/reload feature of the REPRO
command.
CATIN DD describes and allocates the magnetic tape file that contains
the unloaded copy of the catalog. Because a standard label tape is
used, DCB parameters of record format, record size, and block size
need not be specified. For an unlabeled tape, the same parameters as
in the previous example must be specified.
INFILE is required and identifies the magnetic tape file that contains
the unloaded, or backup, copy of the user catalog.
OUTFILE is required and identifies the user catalog as a VSAM data set
to be opened for record processing. The master password allows
opening the catalog as a data set.
REPRO -
INFILE(CLEAR/RDPW) -
OUTFILE(CRYPT) -
COUNT(50) -
ENCIPHER -
(EXTERNALKEYNAME(AKEY27) -
STOREDATAKEY -
CIPHERUNIT(4) -
USERDATA(CONF))
/*
The REPRO command copies and deciphers the enciphered data set from the
source tape to the target data set RRDS2. The enciphered data encrypting
key is obtained from the header of the source data set. The internal file
key (BKEY27) is used to decipher the enciphered data encrypting key, which
is then used to decipher the data.
SYSTEMKEYNAME supplies the key name, BKEY27, of the internal file key
that was used to encipher the system data encrypting key. The file
key must be an internal file key in this system.
3.26 RESETCAT
The RESETCAT command compares catalog entries with catalog recovery area
(CRA) entries to regain access to catalog data. Note, however, that this
command is for use with recoverable catalogs only. The syntax of the
RESETCAT command is:
+------------------------------------------------------------------------+
¦ RESETCAT ¦ CATALOG(catname[/password][ ddname]) ¦
¦ ¦ {CRAFILES((ddname1[ ALL| NONE]) ¦
¦ ¦ [(ddname1[ ALL| NONE])...])| ¦
¦ ¦ CRAVOLUMES((volser[ devtype]) ¦
¦ ¦ [(volser[ devtype])...])} ¦
¦ ¦ [IGNORE|NOIGNORE] ¦
¦ ¦ [MASTERPW(password)] ¦
¦ ¦ [WORKCAT(catname[/password])] ¦
¦ ¦ [WORKFILE(ddname[/password])] ¦
+------------------------------------------------------------------------+
Subtopics
3.26.1 RESETCAT Parameters
3.26.2 RESETCAT Examples
Subtopics
3.26.1.1 Required Parameters
3.26.1.2 Optional Parameters
CATALOG(catname[/password][ddname])
identifies the catalog to be reset. The catalog specified by catname
must have the RECOVERABLE attribute.
password
specifies the catalog's master password. If the catalog is
password protected, you must specify the master password of the
catalog. Alter RACF authority to the catalog is required.
ddname
specifies the name of the DD statement for the catalog being
reset. If ddname is not specified, the catalog will be
dynamically allocated. ddname must also be specified in a JOBCAT
or STEPCAT.
Abbreviation: CAT
CRAVOLUMES((volser[ devtype])...)
specifies the volume serial numbers and corresponding device types of
the volumes used in resetting the catalog. Each volume contains a
catalog recovery area (CRA) that has a copy of the catalog records
that describe the objects on the volume. The volume is allocated
dynamically.
volser
specifies the volume serial number used in resetting the catalog.
devtype
specifies the device type for the associated volume serial number.
If you do not specify devtype, the volume must be mounted and on a
unit marked permanently resident or reserved. If you specify a
Abbreviation: CRAVOL
IGNORE|NOIGNORE
specifies whether RESETCAT should continue processing and force the
reset when certain errors are encountered. These errors may be:
IGNORE
specifies that the RESETCAT command will try to recover as much
information as possible and reset the catalog's description of
those data sets on the specified volumes.
Abbreviation: IGN
NOIGNORE
specifies that I/O errors result in immediate termination.
Abbreviation: NIGN
MASTERPW(password)
specifies the master catalog's master password when the master catalog
is password protected.
WORKCAT(catname[/password])
specifies the name of the catalog in which RESETCAT defines the
WORKFILE. This catalog must not be the same as the catalog being
reset. The catalog must be specified in a JOBCAT or STEPCAT DD
statement.
If you do not specify the WORKCAT parameter, the catalog must be the
first DD statement in the JOBCAT or STEPCAT DD statement
concatenation. However, if the work file catalog is the master
catalog, then you must specify the WORKCAT parameter and it must be
the last DD statement in the JOBCAT or STEPCAT DD statement
concatenation. The resultant catalog must not be the same as the one
being reset.
password
Abbreviation: WCAT
WORKFILE(ddname[/password])
specifies the name of a DD statement that identifies a VSAM data set
name and a list of volume serial numbers of volumes containing VSAM
data spaces and units to be used by RESETCAT for a work file. These
volumes must be owned by the catalog in which the work file is
defined.
password
If you require one, you may specify a password to be used by
RESETCAT to password protect the work file. Because the work file
will contain a copy of the catalog records, it may contain
security-sensitive information. The password you specify will
become the work file's master password. You may specify the
password only if ddname is explicitly specified.
Abbreviation: WFILE
Subtopics
3.26.2.1 Resetting a Catalog: Example 1
3.26.2.2 Resetting a Catalog: Example 2
3.26.2.3 Resetting a Catalog: Example 3
STEPCAT DD makes the user catalog, USERCAT1, and the master catalog,
AMASTCAT, available for the step. These catalogs must be available
for the catalog to be reset and for the work file to be defined,
respectively. Note that, when the work file is to be defined in the
master catalog, the master catalog must be last in the concatenation
and the catalog name is supplied via the WORKCAT parameter.
IDCUT1 DD identifies the data set to be used for the work file.
WORKCAT specifies the name of the catalog in which to define the work
file. WORKCAT must be specified if the work file is to be defined in
the master catalog.
IGNORE specifies that RESETCAT should force the reset of the catalog
despite certain errors that may be encountered during the RESETCAT
processing.
JOBCAT DD makes the user catalogs USERCAT2 and USERCAT1 available for
the job. These catalogs must be available for the work file to be
defined and for the catalog to be reset, respectively.
WORKF DD identifies the data set to be used for the work file.
WORKFILE specifies the DD statement for the work file and a password
to be used as the work file's master password.
NOIGNORE specifies that RESETCAT should not force the reset of the
catalog if certain errors are encountered.
RESETCAT -
CATALOG(USERCAT1) -
WORKCAT(AMASTCAT) -
CRAVOLS((VSER00 3330)(VSER01 3330-1)(VSER02 3330-1))
/*
STEP3: The user catalog USERCAT1 is reset from the previous catalog's
owned volumes.
STEPCAT DD makes the user catalog, USERCAT1, and the master catalog,
IDCUT1 DD, which identifies the data set to be used for the work file.
WORKCAT specifies the name of the catalog in which to define the work
file. WORKCAT must be specified if the work file is to be defined in
the master catalog.
3.27 VERIFY
The VERIFY command causes a catalog to correctly reflect the end of a data
set after an error has occurred while closing a VSAM data set. The error
may have caused the catalog to be incorrect. The syntax of the VERIFY
command is:
+------------------------------------------------------------------------+
¦ VERIFY ¦ {FILE(ddname[/password])| ¦
¦ ¦ DATASET(entryname[/password])} ¦
+------------------------------------------------------------------------+
Subtopics
3.27.1 VERIFY Parameters
3.27.2 VERIFY Example
Subtopics
3.27.1.1 Required Parameters
FILE(ddname[/password])
ddname specifies the name of a DD statement that identifies the
cluster or alternate index to be verified. For further information on
using VERIFY to fix improperly closed data sets, see DFSMS/MVS V1R2
Using Data Sets.
password
is either the control or master password of a password-protected
object (control or alter RACF authority to the object is
required), or the master password of the object's
password-protected catalog (alter RACF authority to the catalog is
required).
DATASET(entryname[/password])
specifies the name and password of the object to be verified. If
DATASET is specified, the object is dynamically allocated.
password
is either the control or master password of a password-protected
object (control or alter RACF authority to the object is
required), or the master password of the object's
password-protected catalog (alter RACF authority to the catalog is
required).
Abbreviation: DS
The VERIFY command can be used following a system failure that caused a
component opened for update processing to be improperly closed. It can
also be used to verify an entry-sequenced data set defined with RECOVERY
that was open in create mode when the system failure occurred. However,
the entry-sequenced data set must contain records (not be empty) to
successfully verify.
Subtopics
3.27.2.1 Upgrading a Data Set's End-of-File Information
When a data set that was improperly closed due to a system failure is
opened, the VSAM OPEN routines set a return code to indicate that the data
set's cataloged information may be inaccurate. You can upgrade the end of
data (EOD) and end of key range (EOKR) information, so that it is accurate
when the data set is next opened, by closing the data set (1) and issuing
the VERIFY command:
The first LISTCAT command lists the data set's cataloged information,
showing the data set's parameters as they were when the data set was last
closed properly.
The VERIFY command updates the data set's cataloged information to show
the data set's real EOD and EOKR values.
The second LISTCAT command lists the data set's cataloged information
again. This time, the EOD and EOKR information show the point at which
processing stopped due to system failure. This information should help
the user determine how much data was added correctly before the system
failed.
Note: VERIFY will only update the high-used RBA fields for the data set,
and not any record counts.
(1) At the first OPEN after system failure, VSAM OPEN sets a
"data set improperly closed" return code. When the data set
is closed properly, VSAM CLOSE resets the "data set
improperly closed" indicator but does not upgrade erroneous
catalog information resulting from the system failure. When
the data set is next opened, its EOD and EOKR information may
still be erroneous (until VERIFY is issued to correct it),
but VSAM OPEN sets the "data set opened correctly" return
code.
"LISTCAT Output Keywords" in topic A.1 lists all field names that can
be listed for each type of entry.
Subtopics
A.1 LISTCAT Output Keywords
A.2 Description of Keyword Fields
A.3 Examples of LISTCAT Output Listings
This section lists the field names associated with each type of catalog
entry. Each field name is followed by an abbreviation that points to a
group of related field descriptions in the next section. Keywords are
listed in alphabetic order and not in the order they appear in the LISTCAT
output.
Subtopics
A.1.1 Alias Entry Keywords
A.1.2 Alternate-Index Entry Keywords
A.1.3 Cluster Entry Keywords
A.1.4 Data Entry Keywords
A.1.5 Index Entry Keywords
A.1.6 Generation Data Group Base Entry Keywords
A.1.7 Non-VSAM Entry Keywords
A.1.8 Page Space Entry Keywords
A.1.9 Path Entry Keywords
A.1.10 User Catalog Entry Keywords
A.1.11 Volume Entry Keywords
ASSOCIATIONS (ASN)
entryname (HIS)
HISTORY (HIS)
RCVY-CI (HIS)
RCVY-DEVT (HIS)
RCVY-VOL (HIS)
RELEASE (HIS)
ASSOCIATIONS (ASN)
ATTEMPTS (PRT)
ATTRIBUTES (ATT)
CLUSTER (ASN)
CODE (PRT)
CONTROLPW (PRT)
DATA (ASN)
entryname (HIS)
HISTORY (HIS)
CREATION (HIS)
EXPIRATION (HIS)
OWNER-IDENT(HIS)
RCVY-CI (HIS)
RCVY-DEVT (HIS)
RCVY-VOL (HIS)
RELEASE (HIS)
INDEX (ASN)
MASTERPW (PRT)
NOUPGRADE (ATT)
PATH (ASN)
PROTECTION (PRT)
RACF (PRT)
READPW (PRT)
UPDATEPW (PRT)
UPGRADE (ATT)
USAR (PRT)
USVR (PRT)
AIX (ASN)
ASSOCIATIONS (ASN)
ATTEMPTS (PRT)
CODE (PRT)
CONTROLPW (PRT)
DATA (ASN)
entryname (HIS)
HISTORY (HIS)
CREATION (HIS)
EXPIRATION (HIS)
OWNER-IDENT (HIS)
RCVY-CI (HIS)
RCVY-DEVT (HIS)
RCVY-VOL (HIS)
RELEASE (HIS)
INDEX (ASN)
MASTERPW (PRT)
PATH (ASN)
PROTECTION (PRT)
RACF (PRT)
READPW (PRT)
UPDATEPW (PRT)
USAR (PRT)
USVR (PRT)
AIX (ASN)
ALLOCATION (ALC)
ASSOCIATIONS (ASN)
ATTEMPTS (PRT)
ATTRIBUTES (ATT)
AVGLRECL (ATT)
AXRKP (ATT)
BUFSPACE (ATT)
BYTES/TRACK (VLS)
CI/CA (ATT)
CISIZE (ATT)
CLUSTER (ASN)
CODE (PRT)
CONTROLPW (PRT)
DEVTYPE (VLS)
entryname (HIS)
ERASE (ATT)
EXCPEXIT (ATT)
EXCPS (STA)
EXTENT-NUMBER (VLS)
EXTENT-TYPE (VLS)
EXTENTS (STA)
EXTENTS (VLS)
HIGH-CCHH (VLS)
HIGH-RBA (VLS)
LOW-CCHH (VLS)
LOW-RBA (VLS)
TRACKS (VLS)
FREESPACE-%CI (STA)
FREESPACE-%CA (STA)
FREESPC-BYTES (STA)
HIGH-KEY (VLS)
HI-ALLOC-RBA (ALC)
HI-ALLOC-RBA (VLS)
HI-KEY-RBA (VLS)
HI-USED-RBA (ALC)
HI-USED-RBA (VLS)
HISTORY (HIS)
CREATION (HIS)
EXPIRATION (HIS)
OWNER-IDENT (HIS)
RCVY-CI (HIS)
RCVY-DEVT (HIS)
RCVY-VOL (HIS)
RELEASE (HIS)
IMBED (ATT)
INDEX (ASN)
INDEXED (ATT)
INH-UPDATE (ATT)
KEYLEN (ATT)
LOW-KEY (VLS)
MASTERPW (PRT)
MAXLRECL (ATT)
MAXRECS (ATT)
NOERASE (ATT)
NOIMBED (ATT)
NONINDEXED (ATT)
NONSPANNED (ATT)
NONUNIQKEY (ATT)
NOREPLICAT (ATT)
NOREUSE (ATT)
NOSWAP (ATT)
NOTRKOVFL (ATT)
NOTUSABLE (ATT)
NOWRITECHK (ATT)
NUMBERED (ATT)
ORDERED (ATT)
PGSPC (ASN)
PHYRECS/TRK (VLS)
PHYREC/SIZE (VLS)
PROTECTION (PRT)
RACF (PRT)
READPW (PRT)
RECOVERY (ATT)
REC-DELETED (STA)
REC-INSERTED (STA)
REC-RETRIEVED (STA)
REC-TOTAL (STA)
REC-UPDATED (STA)
RECORDS/CI (ATT)
REPLICATE (ATT)
RKP (ATT)
REUSE (ATT)
RECVABLE (ATT)
SHROPTNS (ATT)
SPACE-PRI (ALC)
SPACE-SEC (ALC)
SPACE-TYPE (ALC)
SPEED (ATT)
SPLITS-CA (STA)
SPLITS-CI (STA)
SPANNED (ATT)
STATISTICS (STA)
SUBALLOC (ATT)
SWAP (ATT)
SYSTEM-TIMESTAMP (STA)
TEMP-EXP (ATT)
TRACKS/CA (VLS)
TRKOVFL (ATT)
UNIQUE (ATT)
UNIQUEKEY (ATT)
UNORDERED (ATT)
UPDATEPW (PRT)
USAR (PRT)
USVR (PRT)
VOLFLAG (VLS)
VOLSER (VLS)
VOLUMES (VLS)
WRITECHECK (ATT)
AIX (ASN)
ALLOCATION (ALC)
ASSOCIATIONS (ASN)
ATTEMPTS (PRT)
ATTRIBUTES (ATT)
AVGLRECL (ATT)
BUFSPACE (ATT)
CI/CA (ATT)
CISIZE (ATT)
CLUSTER (ASN)
CODE (PRT)
CONTROLPW (PRT)
DEVTYPE (VLS)
entryname (HIS)
ERASE (ATT)
EXCPEXIT (ATT)
EXCPS (STA)
EXTENT-NUMBER (VLS)
EXTENT-TYPE (VLS)
EXTENTS (STA)
EXTENTS (VLS)
HIGH-CCHH (VLS)
HIGH-RBA (VLS)
LOW-CCHH (VLS)
LOW-RBA (VLS)
TRACKS (VLS)
FREESPACE-%CI (STA)
FREESPACE-%CA (STA)
FREESPC-BYTES (STA)
HI-ALLOC-RBA (ALC)
HI-ALLOC-RBA (VLS)
HI-USED-RBA (ALC)
HI-USED-RBA (VLS)
HIGH-KEY (VLS)
HISTORY (HIS)
CREATION (HIS)
EXPIRATION (HIS)
OWNER-IDENT (HIS)
RCVY-CI (HIS)
RCVY-DEVT (HIS)
RCVY-VOL (HIS)
RELEASE (HIS)
IMBED (ATT)
INDEX (STA)
ENTRIES/SECT (STA)
HI-LEVEL-RBA (STA)
LEVELS (STA)
SEQ-SET-RBA (STA)
INH-UPDATE (ATT)
KEYLEN (ATT)
LOW-KEY (VLS)
MASTERPW (PRT)
MAXLRECL (ATT)
NOERASE (ATT)
NOIMBED (ATT)
NOREPLICAT (ATT)
NOREUSE (ATT)
NOTUSABLE (ATT)
NOWRITECHK (ATT)
ORDERED (ATT)
PHYRECS/TRK (VLS)
PHYREC-SIZE (VLS)
PROTECTION (PRT)
RACF (PRT)
READPW (PRT)
REC-DELETED (STA)
REC-INSERTED (STA)
REC-RETRIEVED (STA)
REC-TOTAL (STA)
REC-UPDATED (STA)
RECOVERY (ATT)
REPLICATE (ATT)
REUSE (ATT)
RKP (ATT)
SHROPTNS (ATT)
SPACE-PRI (ALC)
SPACE-SEC (ALC)
SPACE-TYPE (ALC)
SPEED (ATT)
SPLITS-CA (STA)
SPLITS-CI (STA)
STATISTICS (STA)
SUBALLOC (ATT)
SYSTEM-TIMESTAMP (STA)
TEMP-EXP (ATT)
TRACKS/CA (VLS)
UNIQUE (ATT)
UNORDERED (ATT)
UPDATEPW (PRT)
USAR (PRT)
USVR (PRT)
VOLFLAG (VLS)
VOLSER (VLS)
VOLUME (VLS)
WRITECHECK (ATT)
ASSOCIATIONS (ASN)
ATTRIBUTES (GDG)
EMPTY (GDG)
LIMIT (GDG)
NOEMPTY (GDG)
NOSCRATCH (GDG)
SCRATCH (GDG)
entryname (HIS)
HISTORY (HIS)
CREATION (HIS)
EXPIRATION (HIS)
OWNER-IDENT (HIS)
RCVY-CI (HIS)
RCVY-DEVT (HIS)
RCVY-VOL (HIS)
RELEASE (HIS)
NONVSAM (ASN)
ALIAS (ASN)
ASSOCIATIONS (ASN)
DEVTYPE(VLS)
entryname (HIS)
FSEQN (NVS)
HISTORY (HIS)
CREATION (HIS)
EXPIRATION (HIS)
OWNER-IDENT (HIS)
RCVY-CI (HIS)
RCVY-DEVT (HIS)
RCVY-VOL (HIS)
RELEASE (HIS)
VOLSER(VLS)
ASSOCIATIONS (ASN)
ATTEMPTS (PRT)
CODE (PRT)
CONTROLPW (PRT)
DATA (ASN)
entryname (HIS)
HISTORY (HIS)
CREATION (HIS)
EXPIRATION (HIS)
OWNER-IDENT (HIS)
RCVY-CI (HIS)
RCVY-DEVT (HIS)
RCVY-VOL (HIS)
RELEASE (HIS)
INDEX (ASN)
MASTERPW (PRT)
PROTECTION (PRT)
RACF (PRT)
READPW (PRT)
UPDATEPW (PRT)
USAR (PRT)
USVR (PRT)
AIX (ASN)
ASSOCIATIONS (ASN)
ATTEMPTS (PRT)
ATTRIBUTES (ATT)
CLUSTER (ASN)
CODE (PRT)
CONTROLPW (PRT)
DATA (ASN)
entryname (HIS)
HISTORY (HIS)
CREATION (HIS)
EXPIRATION (HIS)
OWNER-IDENT (HIS)
RCVY-CI (HIS)
RCVY-DEVT (HIS)
RCVY-VOL (HIS)
RELEASE (HIS)
INDEX (ASN)
MASTERPW (PRT)
NOUPDATE (ATT)
PROTECTION (PRT)
RACF (PRT)
READPW (PRT)
UPDATE (ATT)
UPDATEPW (PRT)
USAR (PRT)
USVR (PRT)
ALIAS (ASN)
ASSOCIATIONS (ASN)
DEVTYPE(VLS)
entryname (HIS)
HISTORY (HIS)
RCVY-CI (HIS)
RCVY-DEVT (HIS)
RCVY-VOL (HIS)
RELEASE (HIS)
VOLFLAG (VLS)
VOLSER (VLS)
ATTRIBUTES (DSP)
AUTOMATIC (DSP)
EXPLICIT (DSP)
MASTERCAT (DSP)
SUBALLOC (DSP)
UNIQUE (DSP)
USERCAT (DSP)
BYTES/TRK (VOL)
CHARACTERISTICS (VOL)
CYLS/VOL (VOL)
DATASET-DIRECTORY (DSP)
ATTRIBUTES (DSP)
DSN (DSP)
EXTENTS (DSP)
DATASETS (DSP)
DATASETS-ON-VOL (VOL)
DATASPACE (DSP)
DATASPCS-ON-VOL (VOL)
DEVTYPE (VOL)
EXTENT-DESCRIPTOR (DSP)
BEG-CCHH (DSP)
SPACE-MAP (DSP)
TRACKS-TOTAL (DSP)
TRACKS-USED (DSP)
EXTENTS (DSP)
FORMAT-1-DSCB (DSP)
CCHHR (DSP)
TIMESTAMP (DSP)
MAX-PHYREC-SZ (VOL)
MAX-EXT/ALLOC (VOL)
HISTORY (HIS)
RCVY-CI (HIS)
RCVY-DEVT (HIS)
RCVY-VOL (HIS)
RELEASE (HIS)
SEC ALLOC (DSP)
TRKS/CYL (VOL)
TYPE (DSP)
CYLINDER (DSP)
TRACK (DSP)
volume serial number (HIS)
VOLUME-TIMESTAMP (VOL)
This section contains a description of each field name. The field names
are in the following groups of related information:
Groups are in alphabetic order. Field names within each group are in
alphabetic order, not the order of appearance in the listed entry.
Subtopics
A.2.1 ALC: Allocation Group
A.2.2 ASN: Associations Group
A.2.3 ATT: Attributes Group
A.2.4 DSP: Data Space Group
A.2.5 GDG: Generation Data Group Base Entry, Special Fields
A.2.6 HIS: History Group
A.2.7 NVS: Non-VSAM Entry, Special Field
A.2.8 PRT: Protection Group
A.2.9 STA: Statistics Group
A.2.10 VLS: Volumes Group
A.2.11 VOL: Volume Entry, Special Fields For
A.2.12 Device Type Translation
The fields in this group describe the space allocated to the data or index
component defined by the entry.
CYLINDER--Cylinders
TRACK--Tracks
This group lists the type, such as cluster or data, and entrynames of the
objects associated with the present entry. A cluster or alternate index
entry will indicate its associated path entries and data and index (if a
key-sequenced data set) entries. Similarly, an index or data entry will
indicate its associated cluster or the alternate index of which it is a
component.
Note: For variable-length relative record data sets, the AVGLRECL shown
in the LISTCAT output will be four greater than the user-specified length,
reflecting the system-increased record size.
Note: For variable-length relative record data sets, the MAXLRECL shown
in the LISTCAT output will be four greater than the user-specified length,
reflecting the system-increased record size.
NOTUSABLE--The entry is not usable because (1) the catalog could not be
correctly recovered by RESETCAT, or (2) a DELETE SPACE FORCE was issued
for a volume(s) in the entry's volume list.
ORDERED--Volumes are used for space allocation in the order they were
specified when the cluster was defined.
RECOVERY--A temporary CLOSE is issued as each control area of the data set
is loaded, so the whole data set won't have to be reloaded if a serious
error occurs during loading.
REUSE--The data set can be reused (that is, its contents are temporary and
its high-used RBA can be reset to 0 when it is opened).
SPANNED--Data records can be longer than control interval length, and can
cross, or span, control interval boundaries.
SPEED--CLOSE is not issued until the data set has been loaded.
SUBALLOC--More than one VSAM cluster can share the data space. A VSAM
catalog might also occupy the data space.
TRKOVFL--The physical blocks of a page space data set can span a track
boundary.
UNIQUE--Only one VSAM cluster or catalog can occupy the data space--the
cluster or catalog is unique.
UNORDERED--Volumes specified when the cluster was defined can be used for
space allocation in any order.
DATASET DIRECTORY--Lists the VSAM data sets that can be stored (see
CANDIDATE that follows) or actually are stored, in whole or in part, in
the data space.
ATTRIBUTES--Describes the relation between the named data set and the
data space.
DSN--The data set name of the object that can be stored or is stored
on the volume.
EXTENTS--The number of data set extents for the data set within the
data space.
DATASETS--The number of VSAM data sets stored (in whole or in part) in the
data space. (The number includes data sets for which the volume is a
candidate.)
SPACE-MAP--A hexadecimal number that tells what tracks are used and
what tracks are free in the extent. The number consists of one or
more run length codes (RLCs). The first RLC gives the number of
contiguous used tracks, starting at the beginning of the extent; if
all the tracks in the extent are used, there is only one RLC. The
second RLC gives the number of contiguous free tracks, beyond the used
tracks. A third RLC gives used tracks again, a fourth gives free
tracks, and so on.
A 1-byte RLC gives the number of tracks less than or equal to 250; a
3-byte RLC gives the number of tracks greater than 250. That is, if
the first byte of an RLC is X'FA' (250) or less, it is the only byte
of the RLC and gives the number of tracks. If the first byte of an
RLC is X'FB' (251) or more, the byte is followed by two more bytes
that give the number of tracks (the first byte indicates merely to
look at the next two bytes).
CYLINDERS--Cylinders
TRACK--Tracks
The special fields for a generation data group base entry describe
attributes of the generation data group.
ATTRIBUTES
This field includes the following fields:
EMPTY
All generation data sets in the generation data group will be
uncataloged when the maximum number (given under LIMIT) is reached
and one more data set is to be added to the group.
LIMIT
The maximum number of generation data sets allowed in the
generation data group.
NOEMPTY
Only the oldest generation data set in the generation data group
will be uncataloged when the maximum number (given under LIMIT) is
reached and one more data set is to be added to the group.
NOSCRATCH
Generation data sets are not to be scratched (see SCRATCH that
follows) when uncataloged.
SCRATCH
Generation data sets are to be scratched (that is, the DSCB that
describes each one is removed from the VTOC of the volume on which
it resides) when uncataloged.
The fields in this group identify the object's owner, identify its catalog
recovery volume and release level, and give the object's creation and
expiration dates.
The special field for a non-VSAM data set describes a non-VSAM data set
stored on magnetic tape.
FSEQN--The sequence number (for the tape volume indicated under the
"VOLUMES group" keyword VOLSER) of the file in which the non-VSAM data set
is stored.
The fields in this group describe how the alternate index, cluster, data
component, index component, or path defined by the entry is password
protected or RACF protected. NULL or SUPPRESSED might be listed under
password protection and YES or NO might be listed under RACF protection.
NULL indicates that the object defined by the entry has no passwords.
SUPP indicates that the master password of neither the catalog nor the
entry was specified, so authority to list protection information is not
granted.
CODE--Gives the code used to tell the console operator what alternate
index, catalog, cluster, path, data component, or index component requires
him to enter a password. NULL is listed under CODE if a code is not
used--the object requiring the password is identified with its full name.
The fields in this group give numbers and percentages that indicate how
much activity has taken place in the processing of a data or index
component. The statistics in the catalog are updated when the data set is
closed. Therefore, if a failure occurs during CLOSE, the statistics may
not be valid. Because a VSAM catalog remains open from job to job, its
statistics are not updated.
The remaining fields in the statistics group (except for the system
timestamp field), are updated only when the data set is closed.
REC-DELETED--The number of records that have been deleted from the data or
index component. Statistics for records deleted are not maintained when
the data set is processed in control interval mode.
REC-UPDATED--The number of records that have been retrieved for update and
rewritten. This value does not reflect those records that were deleted,
but a record that is updated and then deleted is counted in the update
statistics. Statistics for records updated are not maintained when the
data set is processed in control interval mode.
The fields in this group identify the volume(s) on which a data component,
index component, user catalog, or non-VSAM data set is stored. It also
identifies candidate volume(s) for a data or index component. The fields
describe the type of volume and give, for a data or index component,
information about the space the object uses on the volume.
LOW-KEY (2)--For a key-sequenced data set with the KEYRANGE attribute, the
lowest hexadecimal value allowed on the volume in the key field of a
record in the key range. A maximum of 64 bytes can appear in LOW-KEY.
The special fields for a volume entry describe the characteristics of the
space that VSAM uses on the volume.
volume serial number--The name of the cataloged volume entry. The volume
serial number can be specified with the ENTRIES parameter of LISTCAT to
identify the volume entry.
BYTES/TRK--The number of bytes that VSAM can use on each track on the
volume.
MAX-PHYREC-SZ--The size of the largest physical record that VSAM can write
on the volume.
There is a LISTCAT code for each device type, for example: 3010 200E
translates to 3380 all models.
+------------------------------------------------------------------------+
| ¦ Figure 9. Device Type Translation Table ¦
+------------------------------------------------------------------------¦
| ¦ LISTCAT ¦ ¦
| ¦ Code ¦ Device Type ¦
+-----------+------------------------------------------------------------¦
| ¦ 3010 200E ¦ 3380, all models ¦
+-----------+------------------------------------------------------------¦
| ¦ 3010 200F ¦ 3390, all models ¦
+-----------+------------------------------------------------------------¦
| ¦ 3010 2004 ¦ 9345, all models ¦
+-----------+------------------------------------------------------------¦
| ¦ 30C0 8003 ¦ 3420 Models 3, 5, and 7 ¦
+-----------+------------------------------------------------------------¦
| ¦ 3200 8003 ¦ 3420 Models 4, 6, and 8 (9 track, 6250 BPI) ¦
+-----------+------------------------------------------------------------¦
| ¦ 3210 8003 ¦ 3420 Models 4, 6, and 8 (9 track, 1600/6250 BPI) ¦
+-----------+------------------------------------------------------------¦
| ¦ 3300 8003 ¦ 3420C (3480 compatibility mode) ¦
+-----------+------------------------------------------------------------¦
| ¦ 3400 8003 ¦ 3430, 9 track, 1600/6250 BPI tape ¦
+-----------+------------------------------------------------------------¦
| ¦ 7800 8080 ¦ 3480 Magnetic Tape Unit ¦
+-----------+------------------------------------------------------------¦
| ¦ ¦ 3490 Magnetic Tape Subsystem Models A01, A02, B02, B04, ¦
| ¦ 7800 8080 ¦ D31, and D32 ¦
+-----------+------------------------------------------------------------¦
| ¦ 7804 8080 ¦ 3480 Magnetic Tape Unit with IDRC enabled ¦
+-----------+------------------------------------------------------------¦
| ¦ ¦ 3490 Magnetic Tape Subsystem Models A01, A02, B02, B04, ¦
| ¦ 7804 8080 ¦ D31, and D32 with IDRC enabled ¦
+-----------+------------------------------------------------------------¦
| ¦ ¦ 3490 Magnetic Tape Subsystem Enhanced Capability Models ¦
| ¦ 7804 8081 ¦ A10, A20, B20, B40, D41, and D42 ¦
+------------------------------------------------------------------------+
This section illustrates the kind of output you can get when you specify
LISTCAT parameters. It also describes the job control language you can
specify and the output messages you receive when the LISTCAT procedure
executes successfully.
Subtopics
A.3.1 Job Control Language (JCL) for LISTCAT Jobs
A.3.2 LISTCAT and Access Method Services Output Messages
A.3.3 LISTCAT Output Listing
A.3.4 LISTCAT VOLUME Output Listing
A.3.5 LISTCAT SPACE ALL Output Listing
A.3.6 LISTCAT ALL Output Listing
A.3.7 LISTCAT ALLOCATION Output Listing
A.3.8 LISTCAT HISTORY Output Listing
A.3.9 LISTCAT CREATION/EXPIRATION Output Listing
A.3.10 Examples of LISTCAT in a TSO Environment
The job control language (JCL) statements that can be used to list a
catalog's entries are:
The JOB statement contains user and accounting information required for
your installation.
The EXEC statement identifies the program to be executed, IDCAMS (that is,
the access method services program). STEPCAT is used to allocate the user
catalog. Although this option is supported, its use is not recommended.
When the LISTCAT job completes, access method services provides messages
and diagnostic information. An analysis of any error messages received
can be found in System Messages Volume 1-5. When your LISTCAT job
completes successfully, access method services provides messages that
follow the entry listing (see Figure 10):
--------------------------------------------------------------------------
LISTING FROM
CATALOG -- MJKCAT
--------------------------------------------------------------------------
Figure 10. Messages That Follow the Entry Listing
The first line identifies the catalog that contains the listed entries.
The next group of lines specify the number of each entry type and the
total number of entries that were listed. This statistical information
can help you determine the approximate size, in records, of your catalog.
The next line specifies the number of entries that could not be listed
because the appropriate password was not specified.
The last two messages indicate that the LISTCAT command (FUNCTION) and the
job step (IDCAMS) completed successfully. When LISTCAT is invoked from a
TSO terminal, IDC0001I is not printed.
When you specify LISTCAT with no parameters, the entryname and type of
each entry are listed (see Figure 11). The same listing would result if
the NAMES parameter were specified.
You can use this type of listing to list the name of each cataloged object
and to determine the number of entries in the catalog. The total number
of entries is an approximate size, in records, of your catalog.
--------------------------------------------------------------------------
LISTING FROM
CATALOG -- MJKCAT
LISTCAT -
CATALOG (MJKCAT)
--------------------------------------------------------------------------
Figure 11. Example of LISTCAT Output When No Parameters Are Specified
When the LISTCAT command is specified with the VOLUME parameter, the
volume serial number and device type of each volume that contains part or
all of the cataloged object are listed (see Figure 12).
--------------------------------------------------------------------------
LISTCAT -
VOLUME
CATALOG(MJKCAT)
LISTING
FROM CATALOG -- MJKCAT
LISTING
FROM CATALOG -- MJKCAT
--------------------------------------------------------------------------
Figure 12. Example of LISTCAT VOLUME Output
When the LISTCAT command is specified with the SPACE and ALL parameters,
all the information for each volume entry in the catalog is listed (see
Figure 13). You can use this type of listing to determine how space on
each cataloged volume is allocated to VSAM data spaces. You may have to
list the volume's table of contents (VTOC) to determine how all of the
volume's space is allocated.
--------------------------------------------------------------------------
LISTCAT -
SPACE -
ALL -
CATALOG(MJKCAT)
LISTING
FROM CATALOG -- MJKCAT
LISTING
FROM CATALOG -- MJKCAT
DATASPACE
DATASETS---------------5 FORMAT-1-DSCB: ATTRIBUTES:
EXTENTS----------------1 CCHHR------X'0000000103' SUBALLOC
SEC-ALLOC-------------40 TIMESTAMP EXPLICIT
TYPE---------------TRACK X'8A51B61D97804000' USERCAT
EXTENT-DESCRIPTOR:
TRACKS-TOTAL---------160 BEC-CCHH---X'0000000002' SPACE-
MAP------------5947
TRACKS-USED-----------89
DATASET-DIRECTORY:
DSN----MJKCAT
ATTRIBUTES---------(NULL) EXTENTS----------------3
DSN----MJK.CLUSTER.DATA
ATTRIBUTES---------(NULL) EXTENTS----------------1
DSN----MJK.CLUSTER1.INDEX
ATTRIBUTES---------(NULL) EXTENTS----------------1
DSN----MJK.ALT.INDEX1.DATA
ATTRIBUTES---------(NULL) EXTENTS----------------1
DSN----MJK.ALT.INDEX1.INDEX
ATTRIBUTES---------(NULL) EXTENTS----------------1
--------------------------------------------------------------------------
Figure 13. Example of LISTCAT SPACE ALL Output
When you specify LISTCAT and the ALL parameter, all the information for
each catalog entry is listed. The example in Figure 14 shows the LISTCAT
output for each type of catalog entry. With this type of listing, you can
obtain all cataloged information about each listed entry except for
password and security information. If you want to list an entry's
passwords, you must provide the catalog's master password (this lists the
passwords of each password-protected entry) or each entry's master
password.
Note: When ENTRIES is specified, list only the entrynames that identify
catalog entries that are not volume entries. If you specify a volume
serial number with the ENTRIES parameter, you cannot specify entrynames of
other entry types. However, if you do not specify the ENTRIES parameter
and you do not specify entry types (CLUSTER, SPACE, DATA, etc.), all
entries in the catalog, including volume entries, are listed.
--------------------------------------------------------------------------
LISTCAT -
ALL
CATALOG(MJKCAT)
LISTING
FROM CATALOG -- MJKCAT
ALLOCATION
SPACE-TYPE---------TRACK HI-ALLOC-RBA-------73728
SPACE-PRI--------------6 HI-USED-RBA--------73728
SPACE-SEC--------------6
VOLUME
VOLSER------------333001 PHYREC-SIZE---------4096 HI-ALLOC-
RBA-------73728 EXTENT-NUMBER----------1
DEVTYPE------X'30502009' PHYRECS/TRK------------3 HI-USED-
RBA--------73728 EXTENT-TYPE--------X'00'
VOLFLAG------------PRIME TRACKS/CA--------------6
EXTENTS:
LOW-CCHH-----X'00040008' LOW-RBA----------------0
TRACKS-----------------6
HIGH-CCHH----X'0004000D' HIGH-RBA-----------73727
INDEX --------- MJK.ALT.INDEX1.INDEX
HISTORY
OWNER-IDENT-------(NULL) CREATION----------87.313 RCVY-
VOL----------333001 RCVY-C1---------X'000012'
RELEASE----------------2 EXPIRATION--------00.000 RCVY-DEVT----
X'30502009'
PROTECTION-PSWD-----(NULL) RACF----------------(NO)
ASSOCIATIONS
AIX--------MJK.ALT.INDEX1
ATTRIBUTES
KEYLEN-----------------5 AVGLRECL---------------0
BUFSPACE---------------0 CISIZE---------------512
RKP--------------------5 MAXLRECL-------------505
EXCPEXIT----------(NULL) CI/CA-----------------20
SHROPTNS(1,3) RECOVERY SUBALLOC NOERASE NOWRITECHK
NOIMBED NOREPLICAT UNORDERED
NOREUSE
STATISTICS
REC-TOTAL--------------1 SPLITS-CI--------------0
EXCPS------------------3 INDEX:
REC-DELETED------------0 SPLITS-CA--------------0
EXTENTS----------------1 LEVELS-----------------1
REC-INSERTED-----------0 FREESPACE-%CI----------0 SYSTEM-
TIMESTAMP: ENTRIES/SECT-----------4
REC-UPDATED------------0 FREESPACE-%CA----------0
X'8A51B6C0C87CF000' SEQ-SET-RBA------------0
REC-RETRIEVED----------0 FREESPC-BYTES-------9728
HI-LEVEL-RBA-----------0
ALLOCATION
SPACE-TYPE---------TRACK HI-ALLOC-RBA-------10240
SPACE-PRI--------------1 HI-USED-RBA----------512
SPACE-SEC--------------1
LISTING
FROM CATALOG -- MJKCAT
VOLUME
VOLSER------------333001 PHYREC-SIZE----------512 HI-ALLOC-
RBA-------10240 EXTENT-NUMBER----------1
DEVTYPE------X'30502009' PHYRECS/TRK-----------20 HI-USED-
RBA----------512 EXTENT-TYPE--------X'00'
VOLFLAG------------PRIME TRACKS/CA--------------1
EXTENTS:
LOW-CCHH-----X'0004000E' LOW-RBA----------------0
TRACKS-----------------1
HIGH-CCHH----X'0004000E' HIGH-RBA-----------10239
PATH--------- MJK.AIX1.PATH
HISTORY
OWNER-IDENT-------(NULL) CREATION----------87.313 RCVY-
VOL----------333001 RCVY-C1---------X'000014'
RELEASE----------------2 EXPIRATION--------00.000 RCVY-DEVT----
X'30502009'
PROTECTION-PSWD-----(NULL) RACF----------------(NO)
ASSOCIATIONS
AIX------MJK.ALT.INDEX1
DATA-----MJK.ALT.INDEX1.DATA
INDEX----MJK.ALT.INDEX1.INDEX
DATA-----MJK.CLUSTER.DATA
INDEX----MJK.CLUSTER1.INDEX
ATTRIBUTES
UPDATE
LISTING
FROM CATALOG -- MJKCAT
ATTRIBUTES
KEYLEN-----------------5 AVGLRECL---------------0
BUFSPACE---------------0 CISIZE---------------512
RKP--------------------5 MAXLRECL-------------505
EXCPEXIT--------EXITCLUS CI/CA-----------------20
SHROPTNS(1,3) RECOVERY SUBALLOC NOERASE NOWRITECHK
NOIMBED NOREPLICAT UNORDERED
NOREUSE
STATISTICS
REC-TOTAL--------------1 SPLITS-CI--------------0
EXCPS------------------4 INDEX:
REC-DELETED------------0 SPLITS-CA--------------0
EXTENTS----------------1 LEVELS-----------------1
REC-INSERTED-----------0 FREESPACE-%CI----------0 SYSTEM-
TIMESTAMP:
REC-UPDATED------------0 FREESPACE-%CA----------0
X'8A51B6ACD5B92000' SEQ-SET-RBA------------0
REC-RETRIEVED----------0 FREESPC-BYTES-------9728
HI-LEVEL-RBA-----------0
ALLOCATION
SPACE-TYPE---------TRACK HI-ALLOC-RBA-------10240
SPACE-PRI--------------1 HI-USED-RBA----------512
SPACE-SEC--------------1
VOLUME
VOLSER------------333001 PHYREC-SIZE----------512 HI-ALLOC-
RBA-------10240 EXTENT-NUMBER----------1
DEVTYPE------X'30502009' PHYRECS/TRK-----------20 HI-USED-
RBA----------512 EXTENT-TYPE--------X'00'
VOLFLAG------------PRIME TRACKS/CA--------------1
EXTENTS:
LOW-CCHH-----X'00040007' LOW-RBA----------------0
TRACKS-----------------1
HIGH-CCHH----X'00040007' HIGH-RBA-----------10239
GDG BASE ------ MJK.GDG1
HISTORY
OWNER-IDENT-------OWNGDG CREATION----------87.313 RCVY-
VOL----------333001 RCVY-C1---------X'000015'
RELEASE----------------2 EXPIRATION--------99.365 RCVY-DEVT----
X'30502009'
ATTRIBUTES
LIMIT----------------250 SCRATCH EMPTY
ASSOCIATIONS
NONVSAM--MJK.GDG1.G0001V00
NONVSAM ------- MJK.GDG1.G0001V00
HISTORY
OWNER-IDENT-------(NULL) CREATION----------87.313 RCVY-
VOL----------333001 RCVY-C1---------X'000016'
RELEASE----------------2 EXPIRATION--------00.000 RCVY-DEVT----
X'30502009'
VOLUMES
VOLSER------------333001 DEVTYPE------X'30502009'
FSEQN------------------0
VOLSER------------333002 DEVTYPE------X'30502009'
FSEQN------------------0
ASSOCIATIONS
GDG-------MJK.GDG1
ALIAS-----MJK.GDG1.ALIAS
ALIAS -----------MJK.GDG1.ALIAS
HISTORY
RELEASE----------------2 RCVY-VOL----------333001 RCVY-DEVT----
X'30502009' RCVY-C1---------X'000017'
ASSOCIATIONS
NONVSAM---MJK.GDG1.G0001V00
NONVSAM --------- MJK.NONVSAM
HISTORY
OWNER-IDENT-------(NULL) CREATION----------87.313 RCVY-
VOL----------333001 RCVY-C1---------X'000018'
RELEASE----------------2 EXPIRATION--------00.000 RCVY-DEVT----
X'30502009'
VOLUMES
VOLSER------------333001 DEVTYPE------X'30502009'
FSEQN------------------0
ASSOCIATIONS--------(NULL)
CLUSTER -------- MJKCAT
HISTORY
OWNER-IDENT--------(NULL) CREATION----------87.313
RELEASE-----------------2 EXPIRATION--------99.999
PROTECTION-PSWD------(NULL) RACF----------------(NO)
ASSOCIATIONS
DATA-----VSAM.CATALOG.BASE.DATA.RECORD
INDEX----VSAM.CATALOG.BASE.INDEX.RECORD
LISTING
FROM CATALOG -- MJKCAT
ATTRIBUTES
KEYLEN-----------------44 AVGLRECL-------------505
BUFSPACE------------3072 CISIZE---------------512
RKP---------------------0 MAXLRECL-------------505
EXCPEXIT----------(NULL) CI/CA-----------------40
SHROPTNS(3,3) RECOVERY UNIQUE NOERASE INDEXED
NOWRITECHK IMBED NOREPLICAT
UNORDERED NOREUSE NONSPANNED BIND RECVABLE
STATISTICS
REC-TOTAL--------------15 SPLITS-CI--------------0
EXCPS-----------------24
REC-DELETED-------------0 SPLITS-CA--------------0
EXTENTS----------------2
REC-INSERTED------------0 FREESPACE-%CI----------0 SYSTEM-
TIMESTAMP:
REC-UPDATED-------------0 FREESPACE-%CA----------0
X'8A51B6244C1B1000'
REC-RETRIEVED-----------0 FREESPC-BYTES-----381952
ALLOCATION
SPACE-TYPE----------TRACK HI-ALLOC-RBA------389120
SPACE-PRI--------------57 HI-USED-RBA-------389120
SPACE-SEC--------------18
VOLUME
VOLSER------------333001 PHYREC-SIZE----------512 HI-ALLOC-
RBA------368640 EXTENT-NUMBER----------1
DEVTYPE------X'30502009' PHYRECS/TRK-----------20 HI-USED-
RBA--------20480 EXTENT-TYPE--------X'00'
VOLFLAG------------PRIME TRACKS/CA--------------3
LOW-KEY---------------00
HIGH-KEY--------------3F
HI-KEY-RBA----------6144
EXTENTS:
LOW-CCHH-----X'00000002' LOW-RBA----------------0
TRACKS----------------54
HIGH-CCHH----X'00020011' HIGH-RBA----------368639
VOLUME
VOLSER------------333001 PHYREC-SIZE----------512 HI-ALLOC-
RBA------389120 EXTENT-NUMBER----------1
DEVTYPE------X'30502009' PHYRECS/TRK-----------20 HI-USED-
RBA-------389120 EXTENT-TYPE--------X'00'
VOLFLAG------------PRIME TRACKS/CA--------------3
LOW-KEY---------------40
HIGH-KEY--------------FF
HI-KEY-RBA--------386640
EXTENTS:
LOW-CCHH-----X'00030002' LOW-RBA-----------368640
TRACKS-----------------3
HIGH-CCHH----X'00030004' HIGH-RBA----------389119
INDEX --------- VSAM.CATALOG.BASE.INDEX.RECORD
HISTORY
OWNER-IDENT-------(NULL) CREATION----------00.000
RELEASE----------------2 EXPIRATION--------00.000
PROTECTION-PSWD-----(NULL) RACF----------------(NO)
ASSOCIATIONS
CLUSTER--MJK.CAT
ATTRIBUTES
KEYLEN----------------44 AVGLRECL---------------0
BUFSPACE---------------0 CISIZE---------------512
RKP--------------------0 MAXLRECL-------------505
EXCPEXIT----------(NULL) CI/CA-----------------20
SHROPTNS(3,3) RECOVERY SUBALLOC NOERASE NOWRITECHK
IMBED NOREPLICAT UNORDERED
NOREUSE BIND
STATISTICS
REC-TOTAL--------------3 SPLITS-CI--------------0
EXCPS-----------------13 INDEX:
REC-DELETED------------0 SPLITS-CA--------------0
EXTENTS----------------3 LEVELS-----------------2
REC-INSERTED-----------0 FREESPACE-%CI----------0 SYSTEM-
TIMESTAMP: ENTRIES/SECT-----------7
REC-UPDATED------------0 FREESPACE-%CA----------0
X'8A51B6244C1B1000' SEQ-SET-RBA--------30720
REC-RETRIEVED----------0 FREESPC-BYTES------38912
HI-LEVEL-RBA-----------0
ALLOCATION
SPACE-TYPE---------TRACK
SPACE-PRI--------------3 HI-ALLOC-RBA-------40448
SPACE-SEC--------------3 HI-USED-RBA--------40448
VOLUME
VOLSER------------333001 PHYREC-SIZE----------512 HI-ALLOC-
RBA-------30720 EXTENT-NUMBER----------1
DEVTYPE------X'30502009' PHYRECS/TRK-----------20 HI-USED-
RBA----------512 EXTENT-TYPE--------X'00'
VOLFLAG------------PRIME TRACKS/CA--------------1
EXTENTS:
LOW-CCHH-----X'00020012' LOW-RBA----------------0
TRACKS-----------------1
HIGH-CCHH----X'00030001' HIGH-RBA-----------30719
LISTING
FROM CATALOG -- MJKCAT
VOLUME
VOLSER------------333001 PHYREC-SIZE----------512 HI-ALLOC-
RBA-------39936 EXTENT-NUMBER----------1
DEVTYPE------X'30502009' PHYRECS/TRK-----------20 HI-USED-
RBA--------31232 EXTENT-TYPE--------X'80'
VOLFLAG------------PRIME TRACKS/CA--------------3
LOW-KEY---------------00
HIGH-KEY--------------3F
EXTENTS:
LOW-CCHH-----X'00000002' LOW-RBA------------30720
TRACKS----------------54
HIGH-CCHH----X'00020011' HIGH-RBA-----------39935
VOLUME
VOLSER------------333001 PHYREC-SIZE----------512 HI-ALLOC-
RBA-------40448 EXTENT-NUMBER----------1
DEVTYPE------X'30502009' PHYRECS/TRK-----------20 HI-USED-
RBA--------40448 EXTENT-TYPE--------X'80'
VOLFLAG------------PRIME TRACKS/CA--------------3
LOW-KEY---------------40
HIGH-KEY--------------FF
EXTENTS:
LOW-CCHH-----X'00030002' LOW-RBA------------39936
TRACKS-----------------3
HIGH-CCHH----X'00030004' HIGH-RBA-----------30447
VOLUME -------- 333001
HISTORY
RELEASE----------------2 RCVY-VOL-----------33301 RCVY-DEVT----
X'30502009' RCVY-CI---------X'000009'
CHARACTERISTICS
BYTES/TRK----------13165 DEVTYPE------X'30502009' MAX-PHYREC-
SZ------13030 DATASETS-ON-VOL---------5
TRKS/CYL--------------19 VOLUME-TIMESTAMP:
MAX-EXT/ALLOC----------5 DATASPCS-ON-VOL---------1
CYLS/VOL-------------411 X'8A51B6A76850E000'
DATASPACE
DATASETS---------------5 FORMAT-1-DSCB: ATTRIBUTES:
EXTENTS----------------1 CCHHR------X'0000000103' SUBALLOC
SEC-ALLOC-------------40 TIMESTAMP EXPLICIT
TYPE---------------TRACK X'8A51B61D97B04000' USERCAT
EXTENT-DESCRIPTOR:
TRACKS-TOTAL---------160 BEG-CCHH-----X'00000002' SPACE-
MAP-----------5947
TRACKS-USED-----------89
DATASET-DIRECTORY:
DSN----MJKCAT
ATTRIBUTES--------(NULL) EXTENTS----------------3
DSN----MJK.CLUSTER.DATA
ATTRIBUTES--------(NULL) EXTENTS----------------1
DSN----MJK.CLUSTER1.INDEX
ATTRIBUTES--------(NULL) EXTENTS----------------1
DSN----MJK.ALT.INDEX1.DATA
ATTRIBUTES--------(NULL) EXTENTS----------------1
DSN----MJK.ALT.INDEX1.INDEX
ATTRIBUTES--------(NULL) EXTENTS----------------1
--------------------------------------------------------------------------
Figure 14. Example of LISTCAT ALL Output
When you specify the LISTCAT command and include the ALLOCATION parameter,
each cataloged object with space allocated to it from a VSAM data space is
listed (see Figure 15). All information about the object's space is
listed, but none of the object's other cataloged information is listed.
The entry types that can be specified when the ALLOCATION parameter is
specified are limited to DATA and INDEX.
--------------------------------------------------------------------------
LISTCAT -
ALLOCATION -
CATALOG(MJKCAT)
LISTING
FROM CATALOG -- MJKCAT
LISTING
FROM CATALOG -- MJKCAT
HIGH-CCHH----X'00020011' HIGH-RBA----------368639
VOLUME
VOLSER------------333001 PHYREC-SIZE----------512 HI-ALLOC-
RBA------389120 EXTENT-NUMBER----------1
DEVTYPE------X'30502009' PHYRECS/TRK-----------20 HI-USED-
RBA-------389120 EXTENT-TYPE--------X'00'
VOLFLAG------------PRIME TRACKS/CA--------------3
LOW-KEY---------------40
HIGH-KEY--------------FF
HI-KEY-RBA--------368640
EXTENTS:
LOW-CCHH-----X'00030002' LOW-RBA-----------368640
TRACKS-----------------3
HIGH-CCHH----X'00030004' HIGH-RBA----------389119
INDEX --------- VSAM.CATALOG.BASE.INDEX.RECORD
HISTORY
OWNER-IDENT-------(NULL) CREATION----------00.000
RELEASE----------------2 EXPIRATION--------00.000
ALLOCATION
SPACE-TYPE---------TRACK HI-ALLOC-RBA-------40448
SPACE-PRI--------------3 HI-USED-RBA--------40448
SPACE-SEC--------------3
VOLUME
VOLSER------------333001 PHYREC-SIZE----------512 HI-ALLOC-
RBA-------30720 EXTENT-NUMBER----------1
DEVTYPE------X'30502009' PHYRECS/TRK-----------20 HI-USED-
RBA----------512 EXTENT-TYPE--------X'00'
VOLFLAG------------PRIME TRACKS/CA--------------1
EXTENTS:
LOW-CCHH-----X'00020012' LOW-RBA----------------0
TRACKS-----------------3
HIGH-CCHH----X'00030001' HIGH-RBA-----------30719
VOLUME
VOLSER------------333001 PHYREC-SIZE----------512 HI-ALLOC-
RBA-------39936 EXTENT-NUMBER----------1
DEVTYPE------X'30502009' PHYRECS/TRK-----------20 HI-USED-
RBA--------31232 EXTENT-TYPE--------X'80'
VOLFLAG------------PRIME TRACKS/CA--------------3
LOW-KEY---------------00
HIGH-KEY--------------3F
EXTENTS:
LOW-CCHH-----X'00000002' LOW-RBA------------30720
TRACKS----------------54
HIGH-CCHH----X'00020011' HIGH-RBA-----------39935
LISTING
FROM CATALOG -- MJKCAT
VOLUME
VOLSER------------333001 PHYREC-SIZE----------512 HI-ALLOC-
RBA-------40448 EXTENT-NUMBER----------1
DEVTYPE------X'30502009' PHYRECS/TRK-----------20 HI-USED-
RBA--------40448 EXTENT-TYPE--------X'80'
VOLFLAG------------PRIME TRACKS/CA--------------3
LOW-KEY---------------40
HIGH-KEY--------------FF
EXTENTS:
LOW-CCHH-----X'00030002' LOW-RBA------------39936
TRACKS-----------------3
HIGH-CCHH----X'00030004' HIGH-RBA-----------40447
PAGESPACE -------------0
PATH ------------------1
SPACE -----------------0
USERCATALOG -----------0
TOTAL ----------------10
--------------------------------------------------------------------------
Figure 15. Example of LISTCAT ALLOCATION Output
When you specify the LISTCAT command and include the HISTORY parameter,
only the name, ownerid, creation date, and expiration date are listed for
each selected entry (see Figure 16). Only these types of entries have
HISTORY information: ALTERNATEINDEX, CLUSTER, DATA, INDEX, NONVSAM, and
PATH.
--------------------------------------------------------------------------
LISTCAT -
HISTORY -
CATALOG(MJKCAT)
LISTING
FROM CATALOG -- MJKCAT
LISTING
FROM CATALOG -- MJKCAT
--------------------------------------------------------------------------
Figure 16. Example of LISTCAT HISTORY Output
When you specify the LISTCAT command and include the CREATION or
EXPIRATION parameter (or both), entries that have a creation or expiration
date are selected according to the number of days you specify in the
subparameter.
In Figure 17, for example, because all entries in the listed catalog,
USERCAT3, were created on the same day as the LISTCAT, no entries are
listed as a result of the LISTCAT CREATION(5) job. When that job is run
on an older catalog, each entry whose creation date is prior to the number
of days specified with the CREATION parameter is listed (that is, the
CREATION number of days specifies that all objects in the catalog at least
5 days old are to be listed). The creation date of the data and index
objects of a cluster or alternate index is always the same as the creation
date of its associated cluster or alternate index object. The creation
date of the data and index object of a catalog is always set to 0.
When you list all entries of a catalog, and you specify the CREATION
parameter, each user catalog connector entry and each alias entry are also
listed regardless of their creation date.
When the LISTCAT EXPIRATION(20) job is run, each entry whose expiration
date occurs within 20 days of today's date is listed. Because the
expiration date of a cluster or alternate index is controlled by the
cluster or alternate index object entry in the catalog, the expiration
date for the data and index objects of a cluster or alternate index is
always 0.
When you list all entries of a catalog and you specify the EXPIRATION
parameter, each volume entry will be listed, because volume entries have
no expiration date.
--------------------------------------------------------------------------
LISTING
FROM CATALOG -- MJKCAT
/* LIST EACH CATALOG ENTRY WITH CREATION DATE OF 5 DAYS AGO OR GREATER */
LISTCAT -
CREATION(5) -
CATALOG(MJKCAT)
PAGESPACE -------------0
PATH ------------------0
SPACE -----------------0
USERCATALOG -----------0
TOTAL -----------------1
LISTING
FROM CATALOG -- MJKCAT
LISTCAT -
EXPIRATION(20) -
CATALOG(MJKCAT)
--------------------------------------------------------------------------
Figure 17. Example of LISTCAT CREATION/EXPIRATION Output
For LISTCAT NAMES, the catalog name is printed, followed by the names of
all entries that have a high-level qualifier equal to the USER logon ID.
For LISTCAT VOLUME, all entrynames that have a high-level qualifier equal
to the USER logon ID are printed, followed by the volume serial numbers
for those entries that contain volume information.
LOGON IBMUSER
.
.
.
READY
LISTCAT
IN CATALOG: AMAST1
IBMUSER.AIX
IBMUSER.AIXDATA
IBMUSER.AIXIDX
IBMUSER.GDG
IBMUSER.GDG.G0001V00
IBMUSER.GDG.G0002V00
IBMUSER.GDG.G0003V00
IBMUSER.KSDS
IBMUSER.KSDSDATA
IBMUSER.KSDSIDX
IBMUSER.NVSAM1
IBMUSER.NVSAM2
IBMUSER.NVSAM3
IBMUSER.NVSAM4
IBMUSER.NVSAM5
READY
LISTCAT VOLUME
IBMUSER.AIX
IBMUSER.AIXDATA
--VOLUMES--
333001
IBMUSER.AIXIDX
--VOLUMES--
333001
IBMUSER.GDG
IBMUSER.GDG.G0001V00
--VOLUMES--
333001
333002
333003
IBMUSER.GDG.G0002V00
--VOLUMES--
333004
333005
333006
333007
333008
IBMUSER.GDG.G0003V00
--VOLUMES--
333009
333010
IBMUSER.KSDS
IBMUSER.KSDSDATA
--VOLUMES--
333001
IBMUSER.KSDSIDX
--VOLUMES--
333001
IBMUSER.NVSAM1
--VOLUMES--
333001
333002
IBMUSER.NVSAM2
--VOLUMES--
333003
333004
333005
IBMUSER.NVSAM3
--VOLUMES--
333006
IBMUSER.NVSAM4
--VOLUMES--
333007
IBMUSER.NVSAM5
--VOLUMES--
333008
333009
333010
333011
333012
READY
When you code the LISTCRA command, you can specify options that allow you
to tailor the contents of the LISTCRA output. This appendix illustrates
the various types of LISTCRA output, the order in which entries are
listed, and the meanings of the listed fields.
There are five kinds of LISTCRA listings. Four are illustrated in this
appendix. The fifth, SEQUENTIALDUMP, is the same as that for DUMP
NOCOMPARE, except that the entries are not sorted into groups.
Each listed entry is identified by type (by cluster, non-VSAM, and so on)
and by name. Entries are usually listed in alphabetic order within groups
of entries, according to entryname (except for SEQUENTIALDUMP). However,
if insufficient virtual storage is available for the sorting operation,
the records are listed as they appear in the catalog recovery area.
On the listing, entries are sorted into three groups (except for a
SEQUENTIALDUMP listing):
The following list contains the abbreviation, type, and description for
each kind of entry that can be listed as a result of the LISTCRA command:
+------------------------------------------------------------------------+
¦ Abbreviation ¦ Type ¦ Description ¦
+--------------+------+--------------------------------------------------¦
¦ AIX ¦ G ¦ Alternate index entry ¦
+--------------+------+--------------------------------------------------¦
¦ ALIA ¦ X ¦ Alias entry ¦
+--------------+------+--------------------------------------------------¦
¦ CLUS ¦ C ¦ Cluster entry ¦
+--------------+------+--------------------------------------------------¦
¦ DATA ¦ D ¦ Data component entry ¦
+--------------+------+--------------------------------------------------¦
¦ FRSP ¦ F ¦ Freespace entry ¦
+--------------+------+--------------------------------------------------¦
¦ GDGB ¦ B ¦ Generation data group entry ¦
+--------------+------+--------------------------------------------------¦
¦ INDX ¦ I ¦ Index component entry ¦
+--------------+------+--------------------------------------------------¦
¦ NONV ¦ A ¦ Non-VSAM data set entry ¦
+--------------+------+--------------------------------------------------¦
¦ OEXT ¦ E ¦ Extension record for entry other than volume ¦
¦ ¦ ¦ entry ¦
+--------------+------+--------------------------------------------------¦
¦ PATH ¦ P ¦ Path entry ¦
+--------------+------+--------------------------------------------------¦
¦ UCAT ¦ U ¦ User catalog connector entry (in master catalog ¦
¦ ¦ ¦ only) ¦
+--------------+------+--------------------------------------------------¦
¦ UPGD ¦ Y ¦ Upgrade set entry ¦
+--------------+------+--------------------------------------------------¦
¦ VEXT ¦ W ¦ Extension record for a volume entry ¦
+--------------+------+--------------------------------------------------¦
¦ VOL ¦ V ¦ Volume entry ¦
+------------------------------------------------------------------------+
Subtopics
B.1 Examples of LISTCRA Listings
4. DUMP COMPARE--When DUMP and COMPARE are specified, only the records
(in dump format) of each miscompared catalog entry are listed. A
miscompared catalog entry is one whose information is not identical to
the information contained in the entry's copy in the catalog area.
For each entry, the catalog recovery area copy is listed first,
followed by the catalog entry, followed by a line that contains
asterisks to identify each miscompared byte. Following each entry, a
MISCOMPARE message is printed that identifies the most serious level
of miscomparison. Within the "unsorted entries" group, miscompared
records not yet printed out are printed in the dump format. See
Figure 21 in topic B.1.5.
Subtopics
B.1.1 Job Control Language (JCL) for LISTCRA Jobs
B.1.2 LISTCRA Output Listing
B.1.3 LISTCRA DUMP Output Listing
B.1.4 LISTCRA COMPARE Output Listing
B.1.5 LISTCRA DUMP COMPARE Output Listing
The job control language (JCL) statements that can be used to list catalog
recovery areas are:
LISTCRA -
COMPARE -
DUMP -
INFILE(CRADD1,CRADD2) -
CATALOG(YOURCAT/PASSWORD CATDD) -
MASTERPW(SECRET) -
OUTFILE(OUTDD)
/*
The JOB statement contains user and accounting information required for
your installation.
The LISTCRA command parameters shown above are common to the LISTCRA DUMP
COMPARE example that follows. Other LISTCRA parameters may be coded and
the output that results is illustrated.
COMPARE specifies that the CRA entries are to be compared with the catalog
entries identified by the CATALOG parameter. Only those that miscompare
will be listed.
INFILE specifies the two DD statements, CRADD1 and CRADD2, which identify
the two volumes whose CRAs are to be compared with the catalog entries and
the miscomparing entries listed.
You can use this type of listing to list the name of each catalog entry
whose copy is in the catalog recovery area, and to determine the number of
entries in each catalog recovery area. The total number of entries is an
approximate size, in records, of the catalog recovery area.
--------------------------------------------------------------------------
VOL - 333301
CRAVOLRCD - 10/07/74 23:35:00
F4DSCBVSAM - 10/07/74 23:35:00
F4DSCBDUMP - 10/07/74 23:35:00
CLUS - AA.LISTCRA.ESDS
DATA - TF41C9A0.VSAMDSET.DFD74280.T861DAD4.TF41C9A0
DATA VOL -
333301
AIX - AA2.LR.ESDS
DATA VOL -
333301
INDX VOL -
333301
AIX - AA1.LR.ESDS
DATA VOL -
333301
INDX VOL -
333301
PATH - AAU.LR.ESDS
UPGD -
CLUS - AA.LISTCRA.KSDS
DATA - T5C55DD0.VSAMDSET.DFD74280.T861DB0A.T5C55DD0
DATA VOL -
333301
INDX - T5C56E70.VSAMDSET.DFD74280.T861DB0A.T5C56E70
INDX VOL -
333301
AIX - AA1.LR.ESDS
DATA - TCD41020.VSAMDSET.DFD74280.T861DB23.TCD41020
DATA VOL -
333301
INDX - TCD41F00.VSAMDSET.DFD74280.T861DB23.TCD41F00
INDX VOL -
333301
CLUS - AA.LISTCRA.ESDS
PATH - AA1U.LR.ESDS
PATH - AA1N.LR.ESDS
CLUS - LR.MCKEYRNG.KSDS
DATA - TF081480.VSAMDSET.DFD74280.T861DB0E.TF081480
DATA VOL - HIGH KEY
333301 - C1C1C1C1C1C1C1C1C5F9
333301 - C1C1C1C1C1C1C1C1E9E9
INDX - TF082370.VSAMDSET.DFD74280.T861DB0E.TF082370
INDX VOL -
333301
333301
--------------------------------------------------------------------------
Figure 18. Example of LISTCRA NAME NOCOMPARE Output
The title line of the output contains the volume serial number and
identifies the group that the following entries are within (in this
case, VSAM Entries).
Note: If the volume is moved to a DOS/VS system and used there, the
CRAVOLRCD timestamp is updated each time the catalog and CRA volume
records are updated for a space allocation change.)
VSAM entries are listed along with the entryname and volume(s) of each
related entry.
Paths are shown as related only to the entry to which the path
provides access. A path that serves as an alias for a VSAM data set
is listed with the data-set's entry. A path that shows the
relationship of an alternate index to a base cluster is listed with
the alternate-index's entry only.
When you specify LISTCRA with the DUMP parameter, each record in the
catalog recovery area is listed in dump format. In addition, the name and
volumes of each indirectly related entry are also listed. The same
listing would result if the DUMP and NOCOMPARE parameters were specified.
When you specify LISTCRA SEQUENTIALDUMP, the same listing results, except
that the records are listed in their entry sequence within the catalog
recovery area.
You can use this type of listing to list the complete contents of each
catalog entry whose copy is in the catalog recovery area, and to determine
the exact number of entries and records in each catalog recovery area.
--------------------------------------------------------------------------
PICTURE 1
PICTURE 2
--------------------------------------------------------------------------
Figure 19. Example of LISTCRA DUMP NOCOMPARE Output
2. The 3-byte control interval number of the catalog record for which
this is a copy, in hexadecimal form.
4. A 44-byte field at offset X'31' (decimal 49) that contains the entry's
entryname (padded with binary zeros), or an 8-byte field followed by
36 bytes of binary zeros that contain the volume entry's volume serial
number.
7. As in the NAME NOCOMPARE output, the alternate index name and the fact
that there is an upgrade set is given, along with the volume serial
numbers of the alternate index's data and index components.
8. The first byte identifies the alternate index's data component and the
next three bytes contain its catalog control interval number.
9. The first byte identifies the alternate index's index component and
the next three bytes contain its catalog control interval number.
10. Because there are two key ranges for this cluster, there are two
volume information sets of fields in the cluster's data and index
component entries.
When you specify LISTCRA with the COMPARE parameter, each record in the
catalog recovery area is compared with its original in the catalog. The
name of each catalog entry that miscompares is listed. A miscompared
catalog entry is one whose information is not identical to the information
contained in the entry's copy in the catalog recovery area. The same
listing would result if the NAME and COMPARE parameters were specified.
You can use this type of listing to determine the number of damaged
entries in your catalog, and you can get an idea of the type of damage
that occurred to each entry. You can issue the EXPORTRA and IMPORTRA
commands to recover the catalog and make its damaged entries usable.
--------------------------------------------------------------------------
CLUS - LR.DELETED.ESDS
CLUS - LR.MCHURBA.ESDS
DATA - T73FEDA0.VSAMDSET.DFD74280.T861DAE1.T73FEDA0
DATA VOL -
333301
CLUS - LR.MCKEYRNG.KSDS
DATA - TF081480.VSAMDSET.DFD74280.T861DB0E.TF081480
DATA VOL - HIGH KEY
333301 - C1C1C1C1C1C1C1C1C5F9
333301 - C1C1C1C1C1C1C1C1E9E9
INDX - TF082370.VSAMDSET.DFD74280.T861DB0E.TF082370
INDX VOL -
333301
333301
* MISCOMPARES - STATISTICS
AIX - 8
INDX - 11
PATH - 5
VOL - 1
UPGD - 3
SUM - 69
--------------------------------------------------------------------------
Figure 20. Example of LISTCRA NAME COMPARE Output
The MISCOMPARES message always refers to the record listed above it.
See DFSMS/MVS V1R2 Managing Catalogs for the cause and seriousness of
this MISCOMPARES message.
When you specify LISTCRA with the DUMP and COMPARE parameters, each record
in the catalog recovery area is compared to its original in the catalog.
Each catalog entry's copy in the catalog recovery area that miscompares is
listed, followed by its original catalog entry (which is damaged),
followed by asterisks to indicate each miscompared byte.
You can use this type of listing to determine the exact damage that
occurred to each entry. You might be able to correct some or all of the
damage by using the ALTER command. You can issue the EXPORTRA and
IMPORTRA commands to recover the catalog and make its damaged entries
usable.
--------------------------------------------------------------------------
CLUS - LR.MCHURBA.ESDS
DATA - T73FEDAD.VSAMDSET.DFD74280.T861DAE1.T73FEDA0
--------------------------------------------------------------------------
Figure 21. Example of LISTCRA DUMP COMPARE Output
4. See DFSMS/MVS V1R2 Managing Catalogs for the cause and seriousness of
this MISCOMPARES message.