Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Initialize Tape (INZTAP) command is used to initialize magnetic tapes for use on the system. This command is used to initialize a tape with a standard volume label for standard label magnetic tape processing, or to initialize a tape with no labels for unlabeled magnetic tape processing.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
DEV | Device | Name | Required, Positional 1 |
NEWVOL | New volume identifier | Character value, *NONE, *CTGID | Optional, Positional 2 |
NEWOWNID | New owner identifier | Character value, *BLANK | Optional, Positional 3 |
VOL | Volume identifier | Character value, *MOUNTED | Optional |
CHECK | Check for active files | *YES, *NO, *FIRST | Optional |
DENSITY | Tape density | Character value, *DEVTYPE, *CTGTYPE, *FMT3480, *FMT3490E, *FMT3570, *FMT3570E, *FMT3590, *FMT3590E, *FMT3590H, *QIC120, *QIC525, *QIC1000, *QIC2GB, *QIC2DC, *QIC4GB, *QIC4DC, *QIC3040, *QIC5010, *MLR3, *SLR60, *SLR100, *FMT2GB, *FMT5GB, *FMT7GB, *FMT20GB, *FMT60GB, *ULTRIUM1, *ULTRIUM2, *VXA1, *VXA2, 1600, 3200, 6250 | Optional |
CODE | Code | *EBCDIC, *ASCII | Optional |
ENDOPT | End of tape option | *REWIND, *UNLOAD | Optional |
CLEAR | Clear | *NO, *YES | Optional |
Top |
Specifies the name of the device in which the volume being initialized for use is placed. Specify the name of the tape or media library device.
This is a required parameter.
Top |
Specifies the volume identifier for a tape being initialized for use as a standard labeled tape. If no volume identifier is specified, the tape is initialized for use as an unlabeled tape.
Top |
Specifies the identifier of the tape owner to write in the volume label.
Top |
Specifies the existing volume identifier of the tape being initialized for use or indicates that the tape currently on the magnetic tape unit should be initialized for use.
Note: If the device specified is a media library device, or a virtual tape device, then the volume specified should be the cartridge identifier or virtual tape volume name to be mounted and used.
Top |
Specifies whether a labeled tape volume should be checked for active data files before it is initialized for use. If an unlabeled volume is placed in the specified device, this parameter is ignored.
Top |
Specifies the recording format of the data to be written on the tape.
Note: Self-configured tape devices may define additional valid values for the density parameter. Use iSeries Navigator (Configuration and Service) (Hardware) (Tape Devices) (Tape Libraries) (Tape Resources) (Properties) or (Configuration and Service)(Hardware) (Tape Devices) (Stand-Alone Devices) (Properties) to find additional valid density values for a specific device, or use the F4=Prompt key on the "Tape density" field of the CL command to see a list of all valid density values for the attached tape devices.
Top |
Specifies the character code in which the volume label is written. All data that is not save data written after the label must be in the same code; codes cannot be intermixed on a tape that is not a save tape. If the tape is being initialized for use as an unlabeled tape with *NONE or no volume identifier specified on the New volume identifier prompt (NEWVOL parameter), this parameter is ignored.
Top |
Specifies whether the tape is rewound only or rewound and unloaded after the operation ends.
Top |
Specifies whether all previous labels and data are deleted from the tape when it is initialized. If the volume must be cleared of all data, it is spaced from the location of the initializing volume label or tape markers to the end of the tape marker.
Top |
INZTAP DEV(TAPE1) NEWVOL(T00100) CHECK(*NO) CODE(*ASCII) ENDOPT(*UNLOAD)
This command initializes the volume on the tape device named TAPE1 using the ASCII character code. Its new volume identifier is T00100, regardless of whether it contains a valid volume identifier or files that have not ended (active field). Once the volume has been initialized, the tape is rewound and unloaded. Any previous data beyond the new volume label is not deleted, but is no longer accessible.
Top |
*ESCAPE Messages
Top |