Change Job Media Library Attributes (QTACJMA) API

  Required Parameter Group:


  Default Public Authority: *USE

  Threadsafe: Yes

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


Authorities and Locks

Device Description Authority
*CHANGE
Job Authority
*JOBCTL, if the job for which information is changed has a different user profile from that of the job that calls the QTACJMA API. *JOBCTL special authority is required when changing or replacing the resource allocation priority.

Required Parameter Group

Media library attributes description
INPUT; CHAR(*)

The media library attributes. Either the entire list of attributes will be replaced or only specified entries will be changed by this specification.

Length of media library attributes description
INPUT; BINARY(4)

The length of the media library attributes description, in bytes.

Format name
INPUT; CHAR(8)

The format name CJMA0100 is the only valid format name used by this API. For more information, see CJMA0100 Format.

Qualified job name
INPUT; CHAR(26)

The name of the job for which information is to be changed. The qualified job name has three parts:

Job name
CHAR(10). A specific job name or the following special value:

*
The job that this program is running in. The rest of the qualified job name parameter must be blank.

*INT
The internal job identifier locates the job. The user name and job number must be blank.

User name
CHAR(10). A specific user profile name, or blanks when the job name is a special value or *INT.

Job number
CHAR(6). A specific job number, or blanks when the job name specified is a special value or *INT.

Internal job identifier
INPUT; CHAR(16)

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.

Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter.


CJMA0100 Format

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.



Field Descriptions

Media library device. The name of the media library device that the attributes apply to. The special values supported are:

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:

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:


Error Messages



API introduced: V4R3

[ Back to top | Backup and Recovery APIs | APIs by category ]