| Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Create Device Description (Tape) (CRTDEVTAP) command creates a device description for a tape device.
Restriction: You must have input/output system configuration (*IOSYSCFG) special authority to use this command.
| Top |
| Keyword | Description | Choices | Notes |
|---|---|---|---|
| DEVD | Device description | Name | Required, Key, Positional 1 |
| TYPE | Device type | Character value, *RSRCNAME | Optional, Key, Positional 2 |
| MODEL | Device model | Character value, *RSRCNAME | Optional, Key, Positional 3 |
| RSRCNAME | Resource name | Name, *NONE, *VRT | Optional, Key, Positional 4 |
| SWTSET | Switch setting | Character value | Optional |
| ONLINE | Online at IPL | *YES, *NO | Optional |
| CTL | Attached controller | Name | Optional |
| ASSIGN | Assign device at vary on | *YES, *NO | Optional |
| UNLOAD | Unload device at vary off | *YES, *NO | Optional |
| MSGQ | Message queue | Single values: *SYSOPR Other values: Qualified object name |
Optional |
| Qualifier 1: Message queue | Name | ||
| Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
| TEXT | Text 'description' | Character value, *BLANK | Optional |
| AUT | Authority | Name, *CHANGE, *ALL, *USE, *EXCLUDE, *LIBCRTAUT | Optional |
| Top |
Specifies the name of the device description.
This is a required parameter.
| Top |
Specifies the type of device this description represents.
The device type is determined from the resource name (RSRCNAME) parameter.
Note: When *RSRCNAME is used, the resource name must be an existing tape resource.
For a list of the device types that are valid on this parameter, press F4 (Prompt) from the TYPE prompt.
| Top |
Specifies the model number of the device for this description.
Note: This parameter is ignored, but can be specified for compatibility with earlier versions of this command.
The device model is determined from the resource name parameter.
Specify a device model for this description.
| Top |
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.
No resource name is specified. A resource name must be provided before the device can be varied on.
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 IBM i has created the maximum number of virtual hardware resources, the last created resource will be used for the device description.
Note: 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.
Specify the name to identify the physical or virtual device on the system.
| Top |
Note: 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.
Specifies the switch setting for tape devices.
For 3422, 3480, and 3490 tape devices the possible values are 0 to F.
For 3430 tape devices the possible values are 0 to 3.
| Top |
Specifies whether this object is automatically varied on at initial program load (IPL).
This device is varied on automatically at IPL.
This device is not varied on automatically at IPL.
| Top |
Specifies the name of the controller description to which this device is attached.
Note: 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.
This parameter is not valid when RSRCNAME(*VRT) is specified.
| Top |
Specifies whether the tape drive is assigned to the system when it is varied on.
The tape drive is assigned when the device is varied on.
The tape drive is not assigned when the device is varied on.
| Top |
Specifies whether the tape drive is unloaded when the device is varied off.
The tape drive is unloaded when the device is varied off.
The tape drive is not unloaded when the device is varied off. The tape is rewound, but not past the beginning-of-tape marker.
| Top |
Specifies the message queue to which operational messages for this device are sent.
The possible qualified names are:
| Top |
Specifies the text that briefly describes the object.
| Top |
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.
| Top |
Example 1: Create a Virtual Tape Device Description
CRTDEVTAP DEVD(VIRTAP01) RSRCNAME(*VRT)
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 TYPE value of 63B0 and MODEL value of 001.
Example 2: Create a Tape Device Description with a Resource Name
CRTDEVTAP DEVD(TAPDEV01) RSRCNAME(TAPERSRC)
This command creates a device description for a tape device that is named TAPDEV01 with resource TAPERSRC.
| Top |
| Top |