Previous Topic: (MIA) RESYNCH Command-Change Managed DevicesNext Topic: CA MIC Statements and Commands


(MIA) USERDATA Command—Populate Device Data Field

The USERDATA command lets you put data into the user data field for a specific device. This command is used most often to pass information to the CA MIA application program interface (API). GTAF propagates the data to all systems. You can then retrieve the data by invoking the application program interface, or display it by issuing the DISPLAY GLOBALUNITS command.

Scope: Local

This command has the following format:

USERDATA	 device text
device

Specifies the local or global name of a GTAF-managed device.

text

Defines the one- to eight-byte character string that you want to put into the user data field associated with the device.

Notes:

Default: The user data field is initialized to nulls (X'00').

Usage Notes: USERDATA Command

Command

Updated User Data Field

USERDATA T123 X'1'

X'0100000000000000'

USERDATA T123 X'01'

X'0100000000000000'

USERDATA T123 X'123'

X'0123000000000000'

USERDATA T123 X'0123'

X'0123000000000000'

 

Examples: USERDATA Command

VARY Command-Change Status of Devices

The VARY command lets you change the status of devices that are being managed by the CA MIA component.

This command has the following format:

VARY (devices), {{AVAILABLE|NOTAVAILABLE} [{EXTERNAL|GLOBAL|[LOCAL|sysid}] |
                {CPON|CPOFF} |
                {DEDICATED|NOTDEDICATED} |
                {NOJOB|J=userid} [{GLOBAL | LOCAL}] |
                {NOTOVERGENNED|OVERGENNED} [{EXTERNAL|GLOBAL|[LOCAL|[sysid}] |
                {ONLINE|OFFLINE} [{EXTERNAL|GLOBAL|[LOCAL|[sysid}] |
                PREFERENCE={value|NONE} }
AVAILABLE

Releases a not-available device and varies that device online. This makes the device available for allocation.

The VARY AVAILABLE command also wakes up the jobs waiting in allocation recovery for a device.

You can specify the following operands:

EXTERNAL

Modifies device status on all external systems (that is, on all systems except the local system).

GLOBAL

Modifies device status on all systems.

LOCAL

Modifies device status on the local system.

sysid

Represents the ID of a system to which you want to direct this VARY command.

The system ID represents the full system name or alias that is assigned to the system using the DEFSYS statement or the one- or two-digit index number of the system. If CA MIM for z/OS cannot find a match between the value you specify for sysid and any known system, then it issues message MIM2063 and ignores the VARY command.

Notes:

CPON

Varies the device online and reserves it for CP use on the local system. This makes the device unavailable for allocation on external systems and unavailable for use by CMS users on the local system.

CPOFF

Releases a device reserved for CP use. This makes the device available for allocation on any system.

DEDICATED

Dedicates the device to jobs on the local system and varies the device offline on all external systems. This makes the device unavailable for allocation on external systems unless there is no other suitable device.

devices

Identifies the device for which you are making a status change. The device is identified by its three- or four-character global name. Enter a single device name, a range of device names, or a list of device names. Specify a range of tape drives by typing two global names separated by a hyphen (for example, 03A0-03A2).

A list of tape drives is specified as two or more global names separated by a comma or space. A list always must be enclosed in parentheses. A list may include a range of drives. For example,

03A0
03A0-03A2
(03A0,03A1,03A2)
(03A0 03A1 03A2)
(03A0-03A2,07E0-07E1)

Note: The devices specified on a VARY RANGE command are presented to the operating system for processing as individual VARY Device requests in ASCENDING device address order, regardless of the order in which device address ranges are specified on the VARY RANGE command.

If you want a specific sequence of VARY command processing, code individual VARY or VARY RANGE commands to achieve the desired VARY completion sequence.

A pending VARY requests can be purged with the VARY PURGE parameter.

LOCAL

Modifies device status on the local system.

NOJOB

Releases a reserved device.

EXTERNAL

This scope parameter modifies device status on all external systems (that is, on all systems except the local system).

GLOBAL

This scope parameter modifies device status on all systems. CA recommends that you do not use the GLOBAL parameter when specifying this command in the CMNDS MIM or SYNCH MIM files unless you are directing the command to a single system (using IFSYS and ENDIF statements).

J=userid

This reserves the device for the job with the name you specify here. The J parameter interacts with the JOB parameter used on z/OS systems. When you specify J=userid on a z/VM system, z/OS systems will display JOB=userid as if the user ID is equivalent to a job.

You can enter a complete user ID or the leading characters of an ID followed by an asterisk (*) wildcard character. The wildcard character may not be specified in the first position of the user ID, and no characters may be specified after the wildcard character. You can use the GLOBAL and LOCAL scope values.

NOTAVAILABLE

Assigns not-available status to the device and varies the device offline. This makes that device unavailable for allocation unless no other device is available.

You can specify the following operands for NOTAVAILABLE:

EXTERNAL

Modifies device status on all external systems (that is, on all systems except the local system).

FORCE

Takes a device that is in use on another system offline on the local system. If the device is allocated externally, then it is taken offline locally and given a status of not available. If the device is online but not allocated, then it is varied offline and also given a status of not available. To bring the device back online after issuing a VARY NOTAVL FORCE command, issue a VARY AVAILABLE command.

GLOBAL

Modifies device status on all systems.

LOCAL

Modifies device status on the local system.

sysid

Represents the ID of a system to which you want to direct this VARY command.

The system ID represents the full system name or alias that is assigned to the system using the DEFSYS statement or the one- or two-digit index number of the system. If CA MIM cannot find a match between the value you specify for sysid and any known system, then it issues message MIM2063 and ignores the VARY command.

Notes

NOTDEDICATED

Releases a dedicated device and varies that device online to all systems. This makes that device available for allocation on any system.

NOTOVERGENNED

Returns a device from the overgenned status to normal status and varies the device online. The following operands limit the scope of this parameter:

EXTERNAL

Modifies device status on all external systems (that is, on all systems except the local system).

GLOBAL

Modifies device status on all systems.

LOCAL

Modifies device status on the local system.

sysid

Represents the ID of a system to which you want to direct this VARY command.

The system ID represents the full system name or alias that is assigned to the system using the DEFSYS statement or the one- or two-digit index number of the system. If CA MIM cannot find a match between the value you specify for sysid and any known system, then it issues message MIM2063 and ignores the VARY command.

You can use the abbreviation NOTOVG for this operand.

Default: GTAF uses the defined value that is specified for the VARYSCOPE operand on the SETOPTION command.

OFFLINE

Varies the device offline. The following operands limit the scope of this parameter:

EXTERNAL

Modifies device status on all external systems (that is, on all systems except the local system).

GLOBAL

Modifies device status on all systems.

LOCAL

Modifies device status on the local system.

sysid

Represents the ID of a system to which you want to direct this VARY command.

The system ID represents the full system name or alias that is assigned to the system using the DEFSYS statement or the one- or two-digit index number of the system. If CA MIM cannot find a match between the value you specify for sysid and any known system, then it issues message MIM2063 and ignores the VARY command.

Default: GTAF uses the scope value that is specified for the VARYSCOPE operand on the SETOPTION command.

ONLINE

Varies the device online. The following operands limit the scope of this parameter:

EXTERNAL

Modifies device status on all external systems (that is, on all systems except the local system).

GLOBAL

Modifies device status on all systems.

LOCAL

Modifies device status on the local system.

sysid

Represents the ID of a system to which you want to direct this VARY command.

The system ID represents the full system name or alias that is assigned to the system using the DEFSYS statement or the one- or two-digit index number of the system. If CA MIM for z/OS cannot find a match between the value you specify for sysid and any known system, then it issues message MIM2063 and ignores the VARY command.

Default: GTAF uses the scope value that is specified for the VARYSCOPE operand on the SETOPTION command.

OVERGENNED

Assigns overgenned status to a device and varies the device offline. You can use the abbreviation OVG for this operand.

You can specify following operands to indicate the scope of the status change:

EXTERNAL

Modifies device status on all external systems (that is, on all systems except the local system).

GLOBAL

Modifies device status on all systems.

LOCAL

Modifies device status on the local system.

sysid

Represents the ID of a system to which you want to direct this VARY command.

The system ID represents the full system name or alias that is assigned to the system using the DEFSYS statement or the one- or two-digit index number of the system. If CA MIM cannot find a match between the value you specify for sysid and any known system, then it issues message MIM2063 and ignores the VARY command.

Default: GTAF uses the scope value that is specified for the VARYSCOPE operand on the SETOPTION command.

PREFERENCE

Specifies the preference value you are assigning to this device (the higher the preference value, the more preferred the device). TPCF assigns this preference value on the local system only. You can specify a value from 1 to 255, or NONE. NONE causes device preferencing to not be done for the specified devices.

Default: PREFERENCE=NONE

Note: When NONE is specified, no preference value will be displayed.

Examples: VARY Command

Note: In these examples, the MI prefix is shown to distinguish the MI VARY command from the CP VARY command. These example commands could also be issued using the SMSG command. Other examples in this section do not show the MI prefix.