1 | Media library attributes description | Input | Char(*) |
2 | Length of media library attributes description | Input | Binary(4) |
3 | Format name | Input | Char(8) |
4 | Qualified job name | Input | Char(26) |
5 | Internal job identifier | Input | Char(16) |
6 | Error code | I/O | Char(*) |
The Change Job Media Library Attributes (QTACJMA) API changes the specified job's settings for the media library attributes. For more information on tape management, see Tape information in the Storage Solutions topic.
The media library attributes. Either the entire list of attributes will be replaced or only specified entries will be changed by this specification.
The length of the media library attributes description, in bytes.
The format name CJMA0100 is the only valid format name used by this API. For more information, see CJMA0100 Format.
The name of the job for which information is to be changed. The qualified job name has three parts:
The internal identifier for the job. The List Job (QUSLJOB) API creates this identifier. If you do not specify *INT for the job name parameter, this parameter must contain blanks. With this parameter, the system can locate the job more quickly than with a job name.
The structure in which to return error information. For the format of the structure, see Error Code Parameter.
The following table lists the fields for the media library attributes description in the CJMA0100 format. For more information about each field, see Field Descriptions.
Offset | Type | Field | |
---|---|---|---|
Dec | Hex | ||
0 | 0 | CHAR(10) | Option |
10 | A | CHAR(2) | Reserved |
12 | C | BINARY(4) | Number of device entries |
Offsets vary. These fields repeat in the order listed, for each media library device that is to have attributes defined. | CHAR(10) | Media library device | |
CHAR(6) | Reserved | ||
BINARY(4) | Resource allocation priority | ||
BINARY(4) | Wait time for initial amount | ||
BINARY(4) | Wait time for end of volume mount | ||
CHAR(4) | Reserved |
Media library device. The name of the media library device that the attributes apply to. The special values supported are:
*ALL | The attributes apply to all media libraries. The value *ALL is only allowed when changing the attributes and must be the first and only device entry. |
*DEFAULT | The attributes apply to all media libraries that do not have specific attributes defined for the specified job. The *DEFAULT device is only allowed when replacing the attribute list and must be specified as the first device entry. |
Number of device entries. The number of entries in the device list changed for this format. There must be at least one entry defined. The maximum number of device entries allowed is 1000.
Option. An option specifying the action to take. Special values are:
*CHANGE | The media library attributes are changed by using the device entries specified in the media library attributes description. If an entry already exists for a specified device, that entry will be replaced. If no entry exists for a specified device, an entry will be created. |
*REPLACE | The entire list of media library attributes are replaced by the device entries specified in the media library attributes description. The first entry must be for the *DEFAULT device. |
Reserved. This field must be set to hexadecimal zeros.
Resource allocation priority. The priority the specified job will be given when the job requests a tape resource within a media library device.
Valid values range from 1 (highest) through 99 (lowest).
Exceptions:
Wait time for end of volume mount. The maximum amount of time, in minutes, a request will wait for the allocation of a tape resource to mount the next volume after the end of volume is reached. Valid values range from 1 through 600.
Exceptions:
Wait time for initial mount. The maximum amount of time, in minutes, a request will wait for the allocation of a tape resource to mount the first volume. Valid values range from 1 through 600.
Exceptions:
Message ID | Error Message Text |
---|---|
CPF1343 E | Job &3/&2/&1 not valid job type for function. |
CPF136A E | Job &3/&2/&1 not active. |
CPF24B4 E | Severe error while addressing parameter list. |
CPF3C1D E | Length specified in parameter &1 not valid. |
CPF3C21 E | Format name &1 is not valid. |
CPF3C39 E | Value for reserved field not valid. |
CPF3C51 E | Internal job identifier not valid. |
CPF3C52 E | Internal job identifier no longer valid. |
CPF3C53 E | Job &3/&2/&1 not found. |
CPF3C54 E | Job &3/&2/&1 currently not available. |
CPF3C55 E | Job &3/&2/&1 does not exist. |
CPF3C58 E | Job name specified is not valid. |
CPF3C59 E | Internal identifier is not blanks and job name is not *INT. |
CPF3C90 E | Literal value cannot be changed. |
CPF3CF1 E | Error code parameter not valid. |
CPF6708 E | Command ended due to error. |
CPF67B1 E | Option value &1 not valid. |
CPF67B2 E | Number of devices entries &1 not valid. |
CPF67B3 E | Media library device &1 not valid. |
CPF67B4 E | Value &1 in field &2 not valid. |
CPF67B5 E | &3/&2/&1 not authorized to change attribute. |
CPF67B6 E | &3/&2/&1 not authorized to do requested operation. |
CPF9872 E | Program or service program &1 in library &2 ended. Reason code &3. |
Top | Backup and Recovery APIs | APIs by category |