Create Device Desc (Tape) (CRTDEVTAP)
Where allowed to run: All environments (*ALL)
Threadsafe: NoParameters
Examples
Error messagesThe Create Device Description (Tape) (CRTDEVTAP) command creates a device description for a tape device.
Top
Parameters
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 nameOptional 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
Device description (DEVD)
Specifies the name of the device description.
This is a required parameter.
Top
Device type (TYPE)
Specifies the type of device this description represents.
- *RSRCNAME
- The device type is determined from the resource name parameter.
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
Device model (MODEL)
Specifies the model number of the device for this description.
This parameter is ignored, but can be specified for compatibility with earlier versions of this command.
- *RSRCNAME
- The device model is determined from the resource name parameter.
- device-model
- Specify a device model for this description.
Top
Resource name (RSRCNAME)
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.
- *NONE
- No resource is specified at this time. A resource name must be provided before the device can be varied on.
- *VRT
- 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.
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.
- resource-name
- Specify the name to identify the virtual or physical devices on the system.
Top
Switch setting (SWTSET)
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.
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.
Top
Online at IPL (ONLINE)
Specifies whether this object is automatically varied on at initial program load (IPL).
- *YES
- This device is varied on automatically at IPL.
- *NO
- This device is not varied on automatically at IPL.
Top
Attached controller (CTL)
Specifies the name of the controller description to which this device is attached.
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
Assign device at vary on (ASSIGN)
Specifies whether the tape drive is assigned to the system when it is varied on.
- *YES
- The tape drive is assigned when the device is varied on.
- *NO
- The tape drive is not assigned when the device is varied on.
Top
Unload device at vary off (UNLOAD)
Specifies whether the tape drive is unloaded when the device is varied off.
- *YES
- The tape drive is unloaded when the device is varied off.
- *NO
- 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
Message queue (MSGQ)
Specifies the message queue to which operational messages for this device are sent.
The possible qualified names are:
- *SYSOPR
- Messages are sent to the QSYSOPR message queue in QSYS.
- message-queue-name
- Specify the name of the message queue to which operational messages are sent.
- *LIBL
- All libraries in the job's library list are searched until the first match is found.
- *CURLIB
- 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.
- library-name
- Specify the name of the library to be searched.
Top
Text 'description' (TEXT)
Specifies the text that briefly describes the object.
- *BLANK
- No text is specified.
- character-value
- Specify no more than 50 characters of text, enclosed in apostrophes.
Top
Authority (AUT)
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.
- *CHANGE
- 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.
- *ALL
- 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.
- *USE
- 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.
- *EXCLUDE
- The user cannot access the object.
- *LIBCRTAUT
- The system determines the authority for the object by using the value specified for the Create authority (CRTAUT) 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.
- name
- 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.
Top
Examples
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
Error messages
*ESCAPE Messages
- CPF261A
- Device description &1 not created due to errors.
Top