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

308 lines
11 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 (Optical) (CRTDEVOPT)</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="CRTDEVOPT.Top_Of_Page"></a>
<h2>Create Device Desc (Optical) (CRTDEVOPT)</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="#CRTDEVOPT.PARAMETERS.TABLE">Parameters</a><br>
<a href="#CRTDEVOPT.COMMAND.EXAMPLES">Examples</a><br>
<a href="#CRTDEVOPT.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="CRTDEVOPT"></a>
<p>The Create Device Description (Optical) (CRTDEVOPT) command creates a device description for an optical device. More information about using this command is in the Local Device Configuration book, SC41-5121.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTDEVOPT.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="CRTDEVOPT.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="#CRTDEVOPT.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="#CRTDEVOPT.RSRCNAME"><b>RSRCNAME</b></a></td>
<td valign="top">Resource name</td>
<td valign="top"><i>Name</i>, *NONE, *VRT</td>
<td valign="top">Required, Key, Positional 2</td>
</tr>
<tr>
<td valign="top"><a href="#CRTDEVOPT.TYPE"><b>TYPE</b></a></td>
<td valign="top">Device type</td>
<td valign="top"><i>Character value</i>, <b><u>*RSRCNAME</u></b>, 6320, 6321, 632A, 632B, 6330, 6336</td>
<td valign="top">Optional, Key</td>
</tr>
<tr>
<td valign="top"><a href="#CRTDEVOPT.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" rowspan="3"><a href="#CRTDEVOPT.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="#CRTDEVOPT.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="#CRTDEVOPT.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="#CRTDEVOPT.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="CRTDEVOPT.DEVD"></a>
<h3>Device description (DEVD)</h3>
<p>Specifies the name of the device description being created.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTDEVOPT.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTDEVOPT.RSRCNAME"></a>
<h3>Resource name (RSRCNAME)</h3>
<p>Specifies the resource name that identifies the hardware that the description represents.
</p>
<dl>
<dt><b>*NONE</b></dt>
<dd>No resource name is specified. A resource name must be provided before the device can be varied on.
</dd>
<dt><b> *VRT</b></dt>
<dd>The resource name will be generated by the operating system at the time the device description is created. The resource name will represent virtual (not physical) hardware. Once the iSeries has created the maximum number of virtual hardware resources, the last created resource will be used for the device description.
<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 that identifies the optical device hardware on the system.
<p>
<b>Note: </b>Use the Work with Hardware Resources (WRKHDWRSC) command with TYPE(*STG) specified to determine the resource name.
</p>
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTDEVOPT.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTDEVOPT.TYPE"></a>
<h3>Device type (TYPE)</h3>
<p>Specifies the type of device that this description represents.
</p>
<p>
<b>Note: </b>If the type (TYPE) parameter specified is not valid for the resource name (RSRCNAME) parameter specified, the OS will automatically configure the TYPE parameter.
</p>
<dl>
<dt><b><u>*RSRCNAME</u></b></dt>
<dd>The device type is determined from the resource name (RSRCNAME) parameter.
</dd>
<dt><b>6320</b></dt>
<dd>The device type is a CD-ROM drive.
</dd>
<dt><b>6321</b></dt>
<dd>The device type is a CD-ROM drive.
</dd>
<dt><b>632A</b></dt>
<dd>The device type is a generic (Non-IBM) optical drive.
</dd>
<dt><b>632B</b></dt>
<dd>The device type is a virtual optical drive.
</dd>
<dt><b>6330</b></dt>
<dd>The device type is a DVD-RAM drive.
</dd>
<dt><b>6336</b></dt>
<dd>The device type is a DVD-ROM drive.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTDEVOPT.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTDEVOPT.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="#CRTDEVOPT.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTDEVOPT.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="#CRTDEVOPT.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTDEVOPT.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="#CRTDEVOPT.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTDEVOPT.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="#CRTDEVOPT.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="CRTDEVOPT.COMMAND.EXAMPLES">Examples</a> </h3>
<p><b>Example 1: Create an Optical Device Description</b>
</p>
<p>
<pre>
CRTDEVOPT DEVD(OPT01) RSRCNAME(*OPT01) TYPE(*RSRCNAME)
</pre>
</p>
<p>This command creates a device description for an optical device that is named OPT01. The device type is determined from the resource name.
</p>
<p><b>Example 2: Create a Virtual Optical Device Description</b>
</p>
<p>
<pre>
CRTDEVOPT DEVD(VRTOPT01) RSRCNAME(*VRT) TYPE(*RSRCNAME)
</pre>
</p>
<p>This command creates a device description for a virtual optical device that is named VRTOPT01. The device type is determined from the resource name. All virtual optical devices will be assigned a <b>TYPE</b> value of 632B.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTDEVOPT.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="CRTDEVOPT.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="#CRTDEVOPT.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>