289 lines
12 KiB
HTML
289 lines
12 KiB
HTML
|
|
||
|
<!doctype html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||
|
<html>
|
||
|
<head><META http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||
|
<title>Check Tape (CHKTAP)</title>
|
||
|
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
|
||
|
</head>
|
||
|
<body bgcolor="white">
|
||
|
<script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<a name="CHKTAP.Top_Of_Page"></a>
|
||
|
<h2>Check Tape (CHKTAP)</h2>
|
||
|
<table width="100%">
|
||
|
<tr>
|
||
|
<td valign="top" align="left"><b>Where allowed to run: </b>All environments (*ALL)<br>
|
||
|
<b>Threadsafe: </b>No
|
||
|
</td>
|
||
|
<td valign="top" align="right">
|
||
|
<a href="#CHKTAP.PARAMETERS.TABLE">Parameters</a><br>
|
||
|
<a href="#CHKTAP.COMMAND.EXAMPLES">Examples</a><br>
|
||
|
<a href="#CHKTAP.ERROR.MESSAGES">Error messages</a></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
<div> <a name="CHKTAP"></a>
|
||
|
<p>The Check Tape (CHKTAP) command searches a volume on the specified device for a unique volume identifier or file label. If the correct tape is loaded, you may process this file on the next tape operation by specifying the same sequence number that was specified in the Check Tape (CHKTAP command). If the correct tape is not found, an escape message is sent.
|
||
|
</p>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CHKTAP.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<hr size="2" width="100%">
|
||
|
|
||
|
<div>
|
||
|
<h3><a name="CHKTAP.PARAMETERS.TABLE">Parameters</a></h3>
|
||
|
<table border="1" cellpadding="4" cellspacing="0">
|
||
|
<!-- col1="10" col2="15" col3="30" col4="10" -->
|
||
|
<tr>
|
||
|
<th bgcolor="aqua" valign="bottom" align="left">Keyword</th>
|
||
|
<th bgcolor="aqua" valign="bottom" align="left">Description</th>
|
||
|
<th bgcolor="aqua" valign="bottom" align="left">Choices</th>
|
||
|
<th bgcolor="aqua" valign="bottom" align="left">Notes</th>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#CHKTAP.DEV"><b>DEV</b></a></td>
|
||
|
<td valign="top">Device</td>
|
||
|
<td valign="top"><i>Name</i></td>
|
||
|
<td valign="top">Required, Positional 1</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#CHKTAP.VOL"><b>VOL</b></a></td>
|
||
|
<td valign="top">Volume identifier</td>
|
||
|
<td valign="top"><i>Character value</i>, <b><u>*MOUNTED</u></b></td>
|
||
|
<td valign="top">Optional, Positional 2</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#CHKTAP.SEQNBR"><b>SEQNBR</b></a></td>
|
||
|
<td valign="top">Sequence number</td>
|
||
|
<td valign="top"><i>Integer</i>, <b><u>*NONE</u></b>, *FIRST, *NEXT, *SEARCH</td>
|
||
|
<td valign="top">Optional, Positional 3</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#CHKTAP.LABEL"><b>LABEL</b></a></td>
|
||
|
<td valign="top">File label</td>
|
||
|
<td valign="top"><i>Character value</i>, <b><u>*NONE</u></b></td>
|
||
|
<td valign="top">Optional, Positional 4</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#CHKTAP.CRTDATE"><b>CRTDATE</b></a></td>
|
||
|
<td valign="top">Creation date</td>
|
||
|
<td valign="top"><i>Date</i>, <b><u>*NONE</u></b></td>
|
||
|
<td valign="top">Optional</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#CHKTAP.ENDOPT"><b>ENDOPT</b></a></td>
|
||
|
<td valign="top">End of tape option</td>
|
||
|
<td valign="top"><b><u>*LEAVE</u></b>, *REWIND, *UNLOAD</td>
|
||
|
<td valign="top">Optional</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CHKTAP.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div> <a name="CHKTAP.DEV"></a>
|
||
|
<h3>Device (DEV)</h3>
|
||
|
<p>Specifies the device in which the volume being checked is placed.
|
||
|
</p>
|
||
|
<p>This is a required parameter.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><i>name</i></b></dt>
|
||
|
<dd>Specify the name of the tape or media library device.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<p>This is a required parameter.
|
||
|
</p>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CHKTAP.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CHKTAP.VOL"></a>
|
||
|
<h3>Volume identifier (VOL)</h3>
|
||
|
<p>Specifies whether the volume identifier on the tape is being checked. This is valid only for a standard labeled tape.
|
||
|
</p>
|
||
|
<p>
|
||
|
<b>Note: </b>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.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*MOUNTED</u></b></dt>
|
||
|
<dd>The volume identifier on the tape is not checked. The volume on the device is used. For a media library device, the volume to be used is the next cartridge in the category mounted by the Set Tape Category (SETTAPCGY) command. For a virtual tape device, the volume to be used is the currently mounted one, or if there is not a currently mounted volume, the next volume in loaded status in the image catalog will be used.
|
||
|
</dd>
|
||
|
<dt><b><i>character-value</i></b></dt>
|
||
|
<dd>If the device specified in the DEV parameter is a stand-alone tape device, specify the volume identifier of the labeled volume. The volume identifier read from the tape is compared to this value. If the volume identifier specified is not found on the tape, an escape message is sent. If the device specified in the DEV parameter is a library device description, specify the cartridge identifier of the volume to be used. If the device specified in the DEV parameter is a virtual tape device, specify the virtual tape volume name of the volume to be used.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CHKTAP.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CHKTAP.SEQNBR"></a>
|
||
|
<h3>Sequence number (SEQNBR)</h3>
|
||
|
<p>Specifies whether a check is made for a specific sequence number of a data file on the tape.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*NONE</u></b></dt>
|
||
|
<dd>No check is made for a file on this volume.
|
||
|
</dd>
|
||
|
<dt><b>*FIRST</b></dt>
|
||
|
<dd>A check is made for the first file on this volume.
|
||
|
</dd>
|
||
|
<dt><b>*NEXT</b></dt>
|
||
|
<dd>A check is made for the next file on this volume. If the current sequence number is at the beginning of the volume, this value checks the first file on that volume.
|
||
|
</dd>
|
||
|
<dt><b>*SEARCH</b></dt>
|
||
|
<dd>A search is made for a data file that has an identifier that matches the value for the <b>File label (LABEL)</b> parameter. If *SEARCH is specified, the volume must be labeled and a file label must be specified for the <b>File label (LABEL)</b> parameter. An escape message is sent if the file is not found.
|
||
|
</dd>
|
||
|
<dt><b><i>integer</i></b></dt>
|
||
|
<dd>Specify the sequence number of the data file to verify on this tape. If the sequence number is not found on the tape, an escape message is sent. Valid values range from 1 through 16777215.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CHKTAP.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CHKTAP.LABEL"></a>
|
||
|
<h3>File label (LABEL)</h3>
|
||
|
<p>Specifies whether a label identifier is checked. If a label is specified, a sequence number must be specified for the <b>Sequence number (SEQNBR)</b> parameter.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*NONE</u></b></dt>
|
||
|
<dd>No check is made for a label identifier on the tape. *NONE must be specified both here and for the <b>Creation date (CRTDATE)</b> parameter for a volume that is not labeled.
|
||
|
</dd>
|
||
|
<dt><b><i>character-value</i></b></dt>
|
||
|
<dd>Specify the data file identifier (17 characters maximum) of the data file to check. If a label is specified, *SEARCH or a sequence number must be specified for the <b>Sequence number (SEQNBR)</b> parameter. The file identifier of the file at that sequence number is compared with the label identified by this parameter. If the label does not match, an escape message is sent.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CHKTAP.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CHKTAP.CRTDATE"></a>
|
||
|
<h3>Creation date (CRTDATE)</h3>
|
||
|
<p>Specifies whether the date the file was created is checked. If *NONE is specified for the <b>Sequence number (SEQNBR)</b> parameter, *NONE must also be specified here.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*NONE</u></b></dt>
|
||
|
<dd>The date the file was created is not checked. *NONE must be specified both here and for the <b>File label (LABEL)</b> parameter for a volume that is not labeled.
|
||
|
</dd>
|
||
|
<dt><b><i>date</i></b></dt>
|
||
|
<dd>Specify the date that must match the date of the file being checked. The date must be specified in the job date format.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CHKTAP.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CHKTAP.ENDOPT"></a>
|
||
|
<h3>End of tape option (ENDOPT)</h3>
|
||
|
<p>Specifies whether the tape is rewound only or rewound and unloaded after the operation ends.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*LEAVE</u></b></dt>
|
||
|
<dd>The tape is not rewound. The next file operation starts at the beginning of the data file where the tape is currently positioned. This allows the file to be opened with the sequence number specified on the <b>Sequence number (SEQNBR)</b> parameter without having to change the tape position.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl>
|
||
|
<dt><b>*REWIND</b></dt>
|
||
|
<dd>The tape is rewound, but not unloaded.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl>
|
||
|
<dt><b>*UNLOAD</b></dt>
|
||
|
<dd>The tape is automatically rewound and unloaded after the operation ends.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CHKTAP.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<hr size="2" width="100%">
|
||
|
<div><h3><a name="CHKTAP.COMMAND.EXAMPLES">Examples</a> </h3>
|
||
|
<p><b>Example 1: Checking the Volume Identifier</b>
|
||
|
</p>
|
||
|
<p>
|
||
|
<pre>
|
||
|
CHKTAP DEV(TAPE1) VOL(TAPEVOL)
|
||
|
</pre>
|
||
|
</p>
|
||
|
<p>This command checks the volume identifier of the volume on the tape device TAPE1. If the volume identifier on the tape is TAPEVOL, the command completes normally and no message is sent. If the volume identifier on the tape is not TAPEVOL, an escape message is sent.
|
||
|
</p>
|
||
|
<p><b>Example 2: Checking for a Specific Sequence Number</b>
|
||
|
</p>
|
||
|
<p>
|
||
|
<pre>
|
||
|
CHKTAP DEV(TAPE2) VOL(VOLID) SEQNBR(5)
|
||
|
LABEL(FILE5) CRTDATE('1/9/84')
|
||
|
</pre>
|
||
|
</p>
|
||
|
<p>This command checks the volume on the tape device TAPE2 for a volume identifier of VOLID. If that volume is found, sequence number 5 is located on the tape (it must be a standard-labeled tape). The sequence number in the file label is used to position to sequence number 5. If the sequence number is found and the header label contains both the file identifier FILE5 and the date of 1/9/84, the correct tape and file has been found, and a completion message is sent. The next tape operation can specify sequence number 5 to access this file without positioning the tape. If the specified volume is not found or the tape is not a standard labeled volume, an escape message is sent. If the volume is found and the sequence number is not found, an escape message is sent. If the file label at that sequence number is not FILE5, an escape message is sent. If the date at that sequence number is not 1/9/84, an escape message is sent.
|
||
|
</p>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CHKTAP.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<hr size="2" width="100%">
|
||
|
<div><h3><a name="CHKTAP.ERROR.MESSAGES">Error messages</a> </h3>
|
||
|
<p><b><u>*ESCAPE Messages</u></b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b>CPF6708</b></dt>
|
||
|
<dd>Command ended due to error.
|
||
|
</dd>
|
||
|
<dt><b>CPF6718</b></dt>
|
||
|
<dd>Cannot allocate device &1.
|
||
|
</dd>
|
||
|
<dt><b>CPF6720</b></dt>
|
||
|
<dd>Incorrect volume &2 found on device &1.
|
||
|
</dd>
|
||
|
<dt><b>CPF6721</b></dt>
|
||
|
<dd>Device &1 not a tape device.
|
||
|
</dd>
|
||
|
<dt><b>CPF6728</b></dt>
|
||
|
<dd>LABEL(*NONE) or CRTDATE(*NONE) required.
|
||
|
</dd>
|
||
|
<dt><b>CPF6734</b></dt>
|
||
|
<dd>File sequence number &3 not found on volume &2.
|
||
|
</dd>
|
||
|
<dt><b>CPF6735</b></dt>
|
||
|
<dd>Label ID &6 not found at &3.
|
||
|
</dd>
|
||
|
<dt><b>CPF6736</b></dt>
|
||
|
<dd>Creation date &6 not found at &3.
|
||
|
</dd>
|
||
|
<dt><b>CPF6737</b></dt>
|
||
|
<dd>Label &4 not found on volume &2.
|
||
|
</dd>
|
||
|
<dt><b>CPF6745</b></dt>
|
||
|
<dd>Device &1 not a media library device.
|
||
|
</dd>
|
||
|
<dt><b>CPF6751</b></dt>
|
||
|
<dd>Load failure occurred on device &4.
|
||
|
</dd>
|
||
|
<dt><b>CPF6752</b></dt>
|
||
|
<dd>SEQNBR(*FIRST) or SEQNBR(*NEXT) is not valid.
|
||
|
</dd>
|
||
|
<dt><b>CPF6760</b></dt>
|
||
|
<dd>Device &1 not ready.
|
||
|
</dd>
|
||
|
<dt><b>CPF6772</b></dt>
|
||
|
<dd>Volume on device &1 cannot be processed.
|
||
|
</dd>
|
||
|
<dt><b>CPF67E6</b></dt>
|
||
|
<dd>Volume &2 is not correct
|
||
|
</dd>
|
||
|
<dt><b>CPF9814</b></dt>
|
||
|
<dd>Device &1 not found.
|
||
|
</dd>
|
||
|
<dt><b>CPF9825</b></dt>
|
||
|
<dd>Not authorized to device &1.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CHKTAP.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
</body>
|
||
|
</html>
|