Work with ASP Jobs (WRKASPJOB)

The Work with ASP Jobs (WRKASPJOB) command allows you to work with a list of jobs that are using an auxiliary storage pool (ASP).

You can use this command to perform the following tasks:

Restrictions:

Parameters

Keyword Description Choices Notes
ASPDEV ASP device Name, *ALLAVL Optional, Positional 1

ASP device (ASPDEV)

Specify the name of the auxiliary storage pool (ASP) device whose jobs are to be displayed. When working with an entire ASP group, the ASP device specified should be that of the primary. Specifying the name of a secondary will only provide the detail vary status when the secondary is being varied to join an already online ASP group.

*ALLAVL
Using job information will be shown for all ASP devices that currently have a state of 'Available'.
name
Specify the name of the ASP whose jobs you want to show.

Examples

Example 1: Work with Jobs Using any Available ASP

WRKASPJOB  ASPDEV(*ALLAVL)

This command shows every available ASP device and the jobs that are using it.

Example 2: Work with Jobs Using a Specific ASP

WRKASPJOB   ASPDEV(WAREHOUSE)

This command shows the jobs that are using an ASP device named WAREHOUSE.

Error messages

*ESCAPE Messages

CPF9814
Device &1 not found.
CPF9825
Not authorized to device &1.
CPF9871
Error occurred while processing.
CPF9899
Error occurred during processing of command.