11.01.2013 Views

ABCs of z/OS System Programming Volume 3 - IBM Redbooks

ABCs of z/OS System Programming Volume 3 - IBM Redbooks

ABCs of z/OS System Programming Volume 3 - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2.19 Initializing a volume using ICKDSF<br />

Figure 2-19 Initializing a volume<br />

Device Support Facilities (ICKDSF)<br />

ICKDSF is a program you can use to perform functions needed for the initialization,<br />

installation, use, and maintenance <strong>of</strong> DASD volumes. You can also use it to perform service<br />

functions, error detection, and media maintenance. However, due to the virtualization <strong>of</strong> the<br />

volumes there is no need for executing media maintenance.<br />

Initializing a DASD volume<br />

After you have completed the installation <strong>of</strong> a device, you must initialize and format the<br />

volume so that it can be used by MVS.<br />

You use the INIT command to initialize volumes. The INIT command writes a volume label (on<br />

cylinder 0, track 0) and a VTOC on the device for use by MVS. It reserves and formats tracks<br />

for the VTOC at the location specified by the user and for the number <strong>of</strong> tracks specified. If no<br />

location is specified, tracks are reserved at the default location.<br />

If the volume is SMS-managed, the STORAGEGROUP option must be declared, in order to<br />

keep such information (SMS managed) in a format-4 DSCB.<br />

Initializing a volume for the first time in <strong>of</strong>fline mode<br />

In the example in Figure 2-19, a volume is initialized at the minimal level because neither the<br />

CHECK nor VALIDATE parameter is specified (as recommended). Because the volume is<br />

being initialized for the first time, it must be mounted <strong>of</strong>fline (to avoid MVS data set<br />

allocations), and the volume serial number must be specified. Because the VTOC parameter<br />

50 <strong>ABCs</strong> <strong>of</strong> z/<strong>OS</strong> <strong>System</strong> <strong>Programming</strong> <strong>Volume</strong> 3<br />

//EXAMPLE JOB<br />

//EXEC PGM=ICKDSF<br />

//SYSPRINT DD SYSOUT=A<br />

//SYSIN DD *<br />

INIT UNITADDRESS(0353) NOVERIFY -<br />

VOLID(VOL123)<br />

/*

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!