ibm-information-center/dist/eclipse/plugins/i5OS.ic.cl_5.4.0.1/crtdevtap.htm

402 lines
14 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<!doctype html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><META http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Create Device Desc (Tape) (CRTDEVTAP)</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="CRTDEVTAP.Top_Of_Page"></a>
<h2>Create Device Desc (Tape) (CRTDEVTAP)</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="#CRTDEVTAP.PARAMETERS.TABLE">Parameters</a><br>
<a href="#CRTDEVTAP.COMMAND.EXAMPLES">Examples</a><br>
<a href="#CRTDEVTAP.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="CRTDEVTAP"></a>
<p>The Create Device Description (Tape) (CRTDEVTAP) command creates a device description for a tape device.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTDEVTAP.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="CRTDEVTAP.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="#CRTDEVTAP.DEVD"><b>DEVD</b></a></td>
<td valign="top">Device description</td>
<td valign="top"><i>Name</i></td>
<td valign="top">Required, Key, Positional 1</td>
</tr>
<tr>
<td valign="top"><a href="#CRTDEVTAP.TYPE"><b>TYPE</b></a></td>
<td valign="top">Device type</td>
<td valign="top"><i>Character value</i>, <b><u>*RSRCNAME</u></b></td>
<td valign="top">Optional, Key, Positional 2</td>
</tr>
<tr>
<td valign="top"><a href="#CRTDEVTAP.MODEL"><b>MODEL</b></a></td>
<td valign="top">Device model</td>
<td valign="top"><i>Character value</i>, <b><u>*RSRCNAME</u></b></td>
<td valign="top">Optional, Key, Positional 3</td>
</tr>
<tr>
<td valign="top"><a href="#CRTDEVTAP.RSRCNAME"><b>RSRCNAME</b></a></td>
<td valign="top">Resource name</td>
<td valign="top"><i>Name</i>, <b><u>*NONE</u></b>, *VRT</td>
<td valign="top">Optional, Key, Positional 4</td>
</tr>
<tr>
<td valign="top"><a href="#CRTDEVTAP.SWTSET"><b>SWTSET</b></a></td>
<td valign="top">Switch setting</td>
<td valign="top"><i>Character value</i></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CRTDEVTAP.ONLINE"><b>ONLINE</b></a></td>
<td valign="top">Online at IPL</td>
<td valign="top"><b><u>*YES</u></b>, *NO</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CRTDEVTAP.CTL"><b>CTL</b></a></td>
<td valign="top">Attached controller</td>
<td valign="top"><i>Name</i></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CRTDEVTAP.ASSIGN"><b>ASSIGN</b></a></td>
<td valign="top">Assign device at vary on</td>
<td valign="top"><b><u>*YES</u></b>, *NO</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CRTDEVTAP.UNLOAD"><b>UNLOAD</b></a></td>
<td valign="top">Unload device at vary off</td>
<td valign="top"><b><u>*YES</u></b>, *NO</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top" rowspan="3"><a href="#CRTDEVTAP.MSGQ"><b>MSGQ</b></a></td>
<td valign="top">Message queue</td>
<td valign="top">Single values: <b><u>*SYSOPR</u></b><br>Other values: <i>Qualified object name</i></td>
<td valign="top" rowspan="3">Optional</td>
</tr>
<tr>
<td valign="top">Qualifier 1: Message queue</td>
<td valign="top"><i>Name</i></td>
</tr><tr>
<td valign="top">Qualifier 2: Library</td>
<td valign="top"><i>Name</i>, <b><u>*LIBL</u></b>, *CURLIB</td>
</tr><tr>
<td valign="top"><a href="#CRTDEVTAP.TEXT"><b>TEXT</b></a></td>
<td valign="top">Text 'description'</td>
<td valign="top"><i>Character value</i>, <b><u>*BLANK</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CRTDEVTAP.AUT"><b>AUT</b></a></td>
<td valign="top">Authority</td>
<td valign="top"><i>Name</i>, <b><u>*CHANGE</u></b>, *ALL, *USE, *EXCLUDE, *LIBCRTAUT</td>
<td valign="top">Optional</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#CRTDEVTAP.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="CRTDEVTAP.DEVD"></a>
<h3>Device description (DEVD)</h3>
<p>Specifies the name of the device description.
</p>
<p>This is a required parameter.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTDEVTAP.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTDEVTAP.TYPE"></a>
<h3>Device type (TYPE)</h3>
<p>Specifies the type of device this description represents.
</p>
<dl>
<dt><b><u>*RSRCNAME</u></b></dt>
<dd>The device type is determined from the resource name parameter.
<p>
<b>Note: </b>When *RSRCNAME is used, the resource name must be an existing tape resource.
</p>
</dd>
</dl>
<p>For a list of the device types that are valid on this parameter, press F4 (Prompt) from the TYPE prompt.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTDEVTAP.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTDEVTAP.MODEL"></a>
<h3>Device model (MODEL)</h3>
<p>Specifies the model number of the device for this description.
</p>
<p>
<b>Note: </b>This parameter is ignored, but can be specified for compatibility with earlier versions of this command.
</p>
<dl>
<dt><b><u>*RSRCNAME</u></b></dt>
<dd>The device model is determined from the resource name parameter.
</dd>
<dt><b><i>device-model</i></b></dt>
<dd>Specify a device model for this description.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTDEVTAP.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTDEVTAP.RSRCNAME"></a>
<h3>Resource name (RSRCNAME)</h3>
<p>Specifies the resource name that identifies the virtual or physical hardware this description represents. For a physical hardware resource use the WRKHDWRSC command to determine the resource name.
</p>
<dl>
<dt><b><u>*NONE</u></b></dt>
<dd>No resource is specified at this time. A resource name must be provided before the device can be varied on.
</dd>
<dt><b> *VRT</b></dt>
<dd>The operating system will generate a virtual hardware resource name to use for the newly created device description. Once the maximum number of virtual hardware resource names have been generated, any additional device descriptions that are created will be assigned the virtual hardware resource name that was last generated.
<p>
<b>Note: </b>The resource name will not be removed if a device description is deleted. You may create a new device description for existing resources by specifying the resource by name.
</p>
</dd>
<dt><b><i>resource-name</i></b></dt>
<dd>Specify the name to identify the virtual or physical devices on the system.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTDEVTAP.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTDEVTAP.SWTSET"></a>
<h3>Switch setting (SWTSET)</h3>
<p>Specifies the switch setting for tape devices.
</p>
<p>For 3422, 3480, and 3490 tape devices the possible values are 0 to F.
</p>
<p>For 3430 tape devices the possible values are 0 to 3.
</p>
<p>
<b>Note: </b>This parameter is no longer valid. Specify the RSRCNAME parameter for all tape devices. The SWTSET parameter is provided for compatibility with earlier versions of this command. If specified, the SWTSET parameter is converted to a resource name by the system.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTDEVTAP.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTDEVTAP.ONLINE"></a>
<h3>Online at IPL (ONLINE)</h3>
<p>Specifies whether this object is automatically varied on at initial program load (IPL).
</p>
<dl>
<dt><b><u>*YES</u></b></dt>
<dd>This device is varied on automatically at IPL.
</dd>
<dt><b>*NO</b></dt>
<dd>This device is not varied on automatically at IPL.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTDEVTAP.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTDEVTAP.CTL"></a>
<h3>Attached controller (CTL)</h3>
<p>Specifies the name of the controller description to which this device is attached.
</p>
<p>
<b>Note: </b>
</p>
<p>To use this device for communicating with a remote location that resides on the same system as the local location, specify a controller description that was created with LINKTYPE (*LOCAL) specified.
</p>
<p>This parameter is not valid when RSRCNAME(*VRT) is specified.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTDEVTAP.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTDEVTAP.ASSIGN"></a>
<h3>Assign device at vary on (ASSIGN)</h3>
<p>Specifies whether the tape drive is assigned to the system when it is varied on.
</p>
<dl>
<dt><b><u>*YES</u></b></dt>
<dd>The tape drive is assigned when the device is varied on.
</dd>
<dt><b>*NO</b></dt>
<dd>The tape drive is not assigned when the device is varied on.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTDEVTAP.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTDEVTAP.UNLOAD"></a>
<h3>Unload device at vary off (UNLOAD)</h3>
<p>Specifies whether the tape drive is unloaded when the device is varied off.
</p>
<dl>
<dt><b><u>*YES</u></b></dt>
<dd>The tape drive is unloaded when the device is varied off.
</dd>
<dt><b>*NO</b></dt>
<dd>The tape drive is not unloaded when the device is varied off. The tape is rewound, but not past the beginning-of-tape marker.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTDEVTAP.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTDEVTAP.MSGQ"></a>
<h3>Message queue (MSGQ)</h3>
<p>Specifies the message queue to which operational messages for this device are sent.
</p>
<p>The possible qualified names are:
</p>
<dl>
<dt><b><u>*SYSOPR</u></b></dt>
<dd>Messages are sent to the QSYSOPR message queue in QSYS.
</dd>
</dl>
<dl>
<dt><b><i>message-queue-name</i></b></dt>
<dd>Specify the name of the message queue to which operational messages are sent.
</dd>
</dl>
<dl>
<dt><b><u>*LIBL</u></b></dt>
<dd>All libraries in the job's library list are searched until the first match is found.
</dd>
</dl>
<dl>
<dt><b>*CURLIB</b></dt>
<dd>The current library for the job is searched. If no library is specified as the current library for the job, the QGPL library is used.
</dd>
</dl>
<dl>
<dt><b><i>library-name</i></b></dt>
<dd>Specify the name of the library to be searched.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTDEVTAP.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTDEVTAP.TEXT"></a>
<h3>Text 'description' (TEXT)</h3>
<p>Specifies the text that briefly describes the object.
</p>
<dl>
<dt><b>*BLANK</b></dt>
<dd>No text is specified.
</dd>
<dt><b><i>character-value</i></b></dt>
<dd>Specify no more than 50 characters of text, enclosed in apostrophes.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTDEVTAP.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTDEVTAP.AUT"></a>
<h3>Authority (AUT)</h3>
<p>Specifies the authority you are giving to users who do not have specific authority for the object, who are not on an authorization list, and whose group profile or supplemental group profiles do not have specific authority for the object.
</p>
<dl>
<dt><b><u>*CHANGE</u></b></dt>
<dd>The user can perform all operations on the object except those limited to the owner or controlled by object existence (*OBJEXIST) and object management (*OBJMGT) authorities. The user can change and perform basic functions on the object. *CHANGE authority provides object operational (*OBJOPR) authority and all data authority. If the object is an authorization list, the user cannot add, change, or remove users.
</dd>
</dl>
<dl>
<dt><b>*ALL</b></dt>
<dd>The user can perform all operations except those limited to the owner or controlled by authorization list management (*AUTLMGT) authority. The user can control the object's existence, specify the security for the object, change the object, and perform basic functions on the object. The user also can change ownership of the object.
</dd>
</dl>
<dl>
<dt><b>*USE</b></dt>
<dd>The user can perform basic operations on the object, such as running a program or reading a file. The user cannot change the object. Use (*USE) authority provides object operational (*OBJOPR), read (*READ), and execute (*EXECUTE) authorities.
</dd>
</dl>
<dl>
<dt><b>*EXCLUDE</b></dt>
<dd>The user cannot access the object.
</dd>
</dl>
<dl>
<dt><b>*LIBCRTAUT</b></dt>
<dd>The system determines the authority for the object by using the value specified for the <b>Create authority (CRTAUT)</b> parameter on the Create Library (CRTLIB) command for the library containing the object to be created. If the value specified for the CRTAUT parameter is changed, the new value will not affect any existing objects.
</dd>
</dl>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of an authorization list to be used for authority to the object. Users included in the authorization list are granted authority to the object as specified in the list. The authorization list must exist when the object is created.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTDEVTAP.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="CRTDEVTAP.COMMAND.EXAMPLES">Examples</a> </h3>
<p><b>Example 1: Create a Virtual Tape Device Description</b>
</p>
<p>
<pre>
CRTDEVTAP DEVD(VIRTAP01) RSRCNAME(*VRT)
</pre>
</p>
<p>This command creates a device description for a virtual tape device that is named VIRTAP01. The device type is determined from the resource name. All virtual tape devices will be assigned a <b>TYPE</b> value of 63B0 and <b>MODEL</b> value of 001.
</p>
<p><b>Example 2: Create a Tape Device Description with a Resource Name</b>
</p>
<p>
<pre>
CRTDEVTAP DEVD(TAPDEV01) RSRCNAME(TAPERSRC)
</pre>
</p>
<p>This command creates a device description for a tape device that is named TAPDEV01 with resource TAPERSRC.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTDEVTAP.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="CRTDEVTAP.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPF261A</b></dt>
<dd>Device description &amp;1 not created due to errors.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTDEVTAP.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>