z/OS HCD User's Guide
Previous topic | Next topic | Contents | Index | Contact z/OS | Library | PDF


Initialize IODF

z/OS HCD User's Guide
SC34-2669-00

Initialize IODF

This utility function initializes a defined VSAM DIV file into an IODF. Each IODF contains as first record a header record, called the IHR (IODF Header Record). This record contains, among other information, the size of the IODF, an optional description of up to 128 characters, as well as an option whether activity logging is enabled or disabled. HCD rejects any data set that does not contain such a header record.

The VSAM DIV file must be preallocated using DD name HCDIODFT. You can add an optional IODF description using DD name HCDCNTL.

This function is invoked by passing the following parameter string.

Initialize a VSAM data set into an IODF
Read syntax diagramSkip visual syntax diagram|--INITIODF--SIZE=nnnn--+------------------+--+--------+--------|
                        |          .-YES-. |  '-,FORCE-'
                        '-,ACTLOG=-+-NO--+-'
 
SIZE=nnnn
nnnn specifies the size of the IODF in 4K blocks. This value must not be greater than the number of records specified with the IDCAMS Define Cluster control statement. If SIZE=0 is specified, the number of allocated records of the VSAM data set is used. If an existing IODF is re-initialized, the specified size value must not be smaller than the number of allocated IODF blocks.
ACTLOG=(YES | NO)
specifies enabling of activity logging. If omitted, the default is YES.
FORCE
indicates that reinitialization of an existing IODF is allowed.

Batch invocation

A data set must be allocated to the following DD names when invoking the batch utility.

DD nameDescription
HCDIODFTIODF to be initialized
HCDCNTLUp to 128 characters used as description for the IODF.
HCDMLOGHCD Message Log data set
HCDTRACETrace data set (if trace is activated)

The following example shows the IDCAMS control statements necessary to define a VSAM DIV file.

DEFINE CLUSTER (NAME (SYS1.IODF01.CLUSTER) -
       LINEAR -
       RECORDS (1024) -
       VOLUMES (DATA02) -
       ) -
       DATA (NAME (SYS1.IODF01))

For an example see the batch job on page ***.

Notes:
  1. This batch job issues a job message IEC161I, which can be ignored.
  2. The VSAM DIV file consists of a data and a cluster file. According to the IODF naming convention (see IODF naming convention), the name of the data file is the IODF name (in this example SYS1.IODF01), and .CLUSTER is appended to the data file for a cluster file. To define your VSAM DIV file, you must append .CLUSTER to the IODF name in the DEFINE CLUSTER statement (in this example SYS1.IODF01.CLUSTER).

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014