Create Device Desc (ASP) (CRTDEVASP)

The Create Device Description (ASP) (CRTDEVASP) command creates a device description for an auxiliary storage pool (ASP) device.

More information about independent disk pools, see the IBM i Information Center at http://www.ibm.com/systems/i/infocenter/

Restriction: You must have input/output system configuration (*IOSYSCFG) special authority to use this command.

Parameters

Keyword Description Choices Notes
DEVD Device description Name Required, Key, Positional 1
RSRCNAME Resource name Name Required, Key, Positional 2
RDB Relational database Name, *GEN 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

Device description (DEVD)

Specifies the name of the device description.

Resource name (RSRCNAME)

Specifies the resource name that identifies the auxiliary storage pool (ASP) by which a collection of disks is known.

resource-name
Specify the name that identifies the ASP by which a collection of disks is known.

Relational database (RDB)

Specifies the relational database (RDB) name to associate with the auxiliary storage pool (ASP) device.

*GEN
The RDB name will be generated by the operating system after a successful vary on of the device. If the device is the primary ASP of an ASP group, the RDB name will be the same as the device name. If the ASP device is a secondary ASP, or a user-defined file system (UDFS) ASP, the RDB name will be set to blanks.
relational-database-name
Specify the RDB name to associate with the ASP device. The specified RDB name will not be used if the ASP device description is a secondary ASP or UDFS ASP. If the ASP device description is the primary ASP of an ASP group, when the ASP group is varied on, the specified RDB name will become the name by which the relational database is known on this system and other systems which connect to this system.

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.

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.

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.

Examples

Example 1: Create an Independent ASP Device

CRTDEVASP   DEVD(COMPANY1)  RSRCNAME(COMPANY1)

This command creates a device description for an independent ASP named COMPANY1. The resource name for the device description is also named COMPANY1. Operational messages messages for independent ASP COMPANY1 will be sent to message queue QSYSOPR in library QSYS.

Example 2: Create a Primary ASP Device

CRTDEVASP   DEVD(WAREHOUSE2)  RSRCNAME(WAREHOUSE2)
            RDB(WAREHOUSE_NUMBER_2)  MSGQ(INVENTORY/WH2)

This command creates a device description for a primary ASP named WAREHOUSE2. The resource name for the device description is also named WAREHOUSE2. The relational database (RDB) name that will be associated with the ASP group when this primary ASP device is varied on is WAREHOUSE_NUMBER_2. Operational messages for independent ASP WAREHOUSE2 will be sent to message queue WH2 in library INVENTORY.

Error messages

*ESCAPE Messages

CPF261A
Device description &1 not created due to errors.