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.

is not specified, the default VTOC size is the number <strong>of</strong> tracks in a cylinder minus one. For a<br />

3390, the default location is cylinder 0, track 1 for 14 tracks.<br />

Initializing a volume to be managed in a DFSMS environment<br />

In the following example, a volume that is to be system-managed is initialized. The volume is<br />

initialized in <strong>of</strong>fline mode at the minimal level. The VTOC is placed at cylinder 2, track 1 and<br />

occupies ten tracks. The VTOC is followed by the VTOC index. The STORAGEGROUP<br />

parameter indicates the volume is to be managed in a DFSMS environment.<br />

INIT UNIT(0353) NOVERIFY STORAGEGROUP -<br />

OWNERID(PAYROLL) VTOC(2,1,10) INDEX(2,11,5)<br />

The following example performs an online minimal initialization, and as a result <strong>of</strong> the<br />

command, an index to the VTOC is created.<br />

// JOB<br />

// EXEC PGM=ICKDSF<br />

//XYZ987 DD UNIT=3390,DISP=OLD,VOL=SER=PAY456<br />

//SYSPRINT DD SYSOUT=A<br />

//SYSIN DD *<br />

INIT DDNAME(XYZ987) NOVERIFY INDEX(X'A',X'B',X'2')<br />

/*<br />

ICKDSF stand-alone version<br />

You can run the stand-alone version <strong>of</strong> ICKDSF under any <strong>IBM</strong> <strong>System</strong> z® processor. To run<br />

the stand-alone version <strong>of</strong> ICKDSF, you IPL ICKDSF with a stand-alone IPL tape that you<br />

create under z/<strong>OS</strong>. This function allows you to initialize volumes without the need for running<br />

an operating system such as z/<strong>OS</strong>.<br />

Creating an ICKDSF stand-alone IPL tape using z/<strong>OS</strong><br />

For z/<strong>OS</strong>, the stand-alone code is in SYS1.SAMPLIB as ICKSADSF. You can load the<br />

ICKDSF program from a file on tape. The following example can be used to copy the<br />

stand-alone program to an unlabeled tape.<br />

//JOBNAME JOB JOB CARD PARAMETERS<br />

//STEPNAME EXEC PGM=IEBGENER<br />

//SYSPRINT DD SYSOUT=A<br />

//SYSIN DD DUMMY,DCB=BLKSIZE=80<br />

//SYSUT1 DD DSNAME=SYS1.SAMPLIB(ICKSADSF),UNIT=SYSDA,<br />

// DISP=SHR,VOLUME=SER=XXXXXX<br />

//SYSUT2 DD DSNAME=ICKDSF,UNIT=3480,LABEL=(,NL),<br />

// DISP=(,KEEP),VOLUME=SER=YYYYYY,<br />

// DCB=(RECFM=F,LRECL=80,BLKSIZE=80)<br />

For details on how to IPL the stand-alone version and to see examples <strong>of</strong> the commands,<br />

refer to Device Support Facilities User’s Guide and Reference Release 17, GC35-0033.<br />

Chapter 2. Data set basics 51

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

Saved successfully!

Ooh no, something went wrong!