Command reference / comm

CHGDEVTAP

Change Device Description

Updates the description of a tape device.

Allowed environments: *ALL. Positional parameters: 1.

Parameters

DEVD Device description

Enter the name of the device description.

Type
*NAME
Required
Yes
Length
10
Case
Uppercase

RSRCNAME Resource name

Sets 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.

Type
*NAME
Required
No
Default
*SAME
Length
10
Case
Uppercase

Suggested / special values: *NONE, *SAME, *VRT

*SAME
Keep the current setting.
*NONE
No resource name is specified at this time.
*VRT
The resource name will be generated by the operating system at the time the device description is modified. The resource name will represent virtual (not physical) hardware.
resource-name
Enter the name to identify the physical or virtual device on the system.

ONLINE Online at IPL

Controls whether this object is automatically varied on at initial program load (IPL).

Type
*CHAR
Required
No
Default
*SAME
Length
50
Case
Uppercase

Allowed values: *NO, *SAME, *YES

*SAME
Keep the current setting.
*YES
This device is varied on automatically at IPL.
*NO
This device is not varied on automatically at IPL.

ASSIGN Assign device at vary on

Controls whether the tape drive is assigned to the system when it is varied on.

Type
*CHAR
Required
No
Default
*SAME
Length
50
Case
Uppercase

Allowed values: *NO, *SAME, *YES

*SAME
Keep the current setting.
*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.

UNLOAD Unload device at vary off

Controls whether the tape drive is unloaded when the device is varied off.

Type
*CHAR
Required
No
Default
*SAME
Length
50
Case
Uppercase

Allowed values: *NO, *SAME, *YES

*SAME
Keep the current setting.
*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.

MSGQ Message queue

Sets the message queue to which operational messages for this device are sent.

Type
*QUAL
Required
No
Default
*SAME
Case
Uppercase

Suggested / special values: *SAME, *SYSOPR

*SAME
Keep the current setting.
*SYSOPR
Messages are sent to the QSYSOPR message queue in QSYS.
message-queue-name
Enter 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
Look in the current library, falling back to QGPL.
library-name
Enter the name of the library to be searched.
Qualified parts (object, then library; write LIBRARY/OBJECT)

Part 5-01

Type
*NAME
Required
No
Length
10
Case
Uppercase

Part 5-11

Type
*NAME
Required
No
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

TEXT Text 'description'

Sets the text that briefly describes the object.

Type
*CHAR
Required
No
Default
*SAME
Length
50
Case
Uppercase

Suggested / special values: *BLANK, *SAME

*SAME
Keep the current text (if any).
*BLANK
Leave the description blank.
character-value
Enter no more than 50 characters of text, enclosed in apostrophes.

SWTSET Switch setting

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.

Type
*CHAR
Required
No
Default
*SAME
Length
50
Case
Uppercase

Suggested / special values: *SAME

*SAME
Keep the current setting.

Examples

CHGDEVTAP DEVD(TAP01) ONLINE(*YES)

Changes the device description of a tape device named TAP01 so that at an IPL the device is automatically varied on.

IBM command documentation

Generated from os/cl/catalog/CHGDEVTAP.json and os/cl/help/CHGDEVTAP.json.