Work with ASP Jobs (WRKASPJOB)

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

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:

Top

Parameters

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

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 using jobs you want to show.
Top

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.

Top

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