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:
- Select jobs to end or select an ASP to end all jobs using it.
- Select jobs to work with or select an ASP to work with all jobs using it.
- Select jobs to send messages to or select an ASP to send a message to all jobs using it.
Restrictions:
- You must have use (*USE) authority to the ASP device description.
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 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 |