z/OS DFSMSdfp Utilities
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Example 7: Write an ISO/ANSI Label with an Access Code

z/OS DFSMSdfp Utilities
SC23-6864-00

In this example, a version 4 ISO/ANSI (AL) labeled tape is created with a nonblank access code. The volume serial number is TAPE01.
  //LABEL7   JOB  ...
  //STEP1    EXEC PGM=IEHINITT
  //SYSPRINT DD  SYSOUT=A
  //LABEL    DD  UNIT=(tape,1,DEFER),DCB=DEN=4
  //SYSIN    DD  *
  LABEL  INITT  SER=TAPE01,OWNER=TAPOWNER,LABTYPE=AL,ACCESS=A,VERSION 4
  /*
The control statements are as follows:
  • LABEL DD defines the device on which the tape is mounted.
  • SYSIN DD defines the control data set, which follows in the input stream.
  • The INITT statement creates a Version 4 ISO/ANSI label for the tape with volume serial number TAPE01, owned by TAPOWNER. The ACCESS code is specified as "A", and the operating system that receives this volume must be able to recognize the "A" in order for the volume to be accepted.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014