Work with Media for OnDemand (WRKMEDRDAR)

Where allowed to run: Interactive environments (*INTERACT *IPGM *IREXX *EXEC)
Threadsafe: No
Parameters
Examples
Error messages

The Work with Media for OnDemand (WRKMEDRDAR) Command allows you to specify the media that is used by OnDemand. Media can be defined for tape and optical devices.

Top

Parameters

Keyword Description Choices Notes
TYPE Media type *OPTVOL, *STGGRP, *TAPDEV, *TAPVOL Required, Positional 1
OPTVOL Optical volume Character value, *ALL Optional
STGGRP Storage group Generic name, name, *ALL Optional
TAPDEV Tape device Generic name, name, *ALL Optional
TAPVOL Tape volume Character value, *ALL Optional
Top

Type (TYPE)

Specifies the type of media to work with.

This is a required parameter.

*OPTVOL
This option allows you to work with optical volumes that are defined to OnDemand. Using this option, you may add, remove, display, and change the optical volumes.
*STGGRP
This option allows you to work with an optical storage group. Using this option, you may create, delete, display, and change the storage groups.
*TAPDEV
This option allows you to work with the tape devices that are defined to OnDemand. Using this option, you may add, remove, display, and change the tape devices.
*TAPVOL
This option allows you to work with tape volumes that are defined to OnDemand. Using this option, you may add, remove, display, and change the tape volumes.
Top

Optical volume (OPTVOL)

Specifies the identifier of an optical volume for which entries are shown on the Work with Optical Volumes display.

Note: If you press the F4 key for this parameter while prompting the command, a list of all the valid entries is presented to you.

*ALL
All volumes are shown.
generic*-optical-volume-identifier
Specify the generic identifier of the optical volumes to work with.
optical-volume-identifier
Specify the identifier of an optical volume to work with.
Top

Storage group (STGGRP)

Specifies the name of the optical storage group for which entries are shown on the Work with OnDemand Storage Groups display.

Note: If you press the F4 key for this parameter while prompting the command, a list of all the valid entries is presented to you.

*ALL
All storage groups are shown.
generic*-storage-group-name
Specify the generic name of the storage groups to work with
storage-group-name
Specify the name of a storage group to work with.
Top

Tape device (TAPDEV)

Specifies the name of a tape device for which entries are shown on the Work with OnDemand Tape Devices display.

Note: If you press the F4 key for this parameter while prompting the command, a list of all the valid entries is presented to you.

*ALL
All tape devices are shown.
generic*-tape-device-name
Specify the generic name of the tape devices to work with.
tape-device-name
Specify the name of a tape device to work with.
Top

Tape volume (TAPVOL)

Specifies the identifier of a tape volume for which entries are shown on the Work with OnDemand Tape Volumes display.

Note: If you press the F4 key for this parameter while prompting the command, a list of all the valid entries is presented to you.

*ALL
All tape volumes are shown.
generic*-tape-volume-identifier
Specify the generic identifier of the tape volumes to work with.
tape-volume-identifier
Specify the identifier of a tape volume to work with.
Top

Examples

Example 1: Simple Example

WRKMEDRDAR TYPE(*OPTVOL)

This command example initiates the OnDemand media functions for all optical volumes (*OPTVOL). Other media types that can be specified include storage groups (*STGGRP), tape devices (*TAPDEV), and tape volumes (*TAPVOL).

Example 2: More Complex Example

WRKMEDRDAR TYPE(*OPTVOL) OPTVOL(OND*)

This command is similar to Example 1 but provides a generic value for the optical volume name to subset the list of volume names with which to work. Each media type described in Example 1 allows the entry of a specific name, a generic name, or *ALL.

Top

Error messages

*ESCAPE Messages

CPF9899
Error occurred during processing of command.
Top