Using wildcards to display system activity
You can use the asterisk (*) wildcard to display information about more than one job or started task. A trailing asterisk (*) indicates that a DISPLAY command applies to all jobs or started tasks that match a leading character string. The DISPLAY JOBS, J, A, or TS command supports only a trailing asterisk. You cannot specify an asterisk in other character positions in job or started task names.
D A,X11*
You can also use the asterisk wildcard to specify both a job name and identifier. The system displays information about all jobs and started tasks that match the combinations of characters that precede one or more asterisks.
D A,J22*.X11*
- If you specify both the jobname and identifier values,
you cannot specify a single asterisk for both values. For example, to display information about all jobs with names beginning with J22, you can specify a single asterisk on the identifier to indicate a wildcard:
D A,J22*.*
If you were to remove the J22 characters from the command, it would not be valid. You cannot specify *.* without a leading character string on the jobname parameter, the identifier parameter, or both.
- A slash (/) cannot precede an identifier that contains an asterisk.
The following tables describe how the asterisk wildcard works with DISPLAY JOBS, J, A, or TS. Table 1 shows examples of START commands used to start jobs. The third and fourth columns show the associated jobnames and identifiers.
Job Number | START Command | Jobname | Identifier |
---|---|---|---|
1 | START YZ | YZ | YZ |
2 | START WX.YZ | WX | YZ |
3 | START WX.YZ1 | WX | YZ1 |
4 | START WX1.YZ1 | WX1 | YZ1 |
5 | START WX, JOBNAME =WX1 | WX1 | WX1 |
6 | START WX, JOBNAME =WX2 | WX2 | WX2 |
7 | START WX, JOBNAME =YZ | YZ | YZ |
8 | START Q.YZ3 | Q | YZ3 |
9 | START WX.R1 | WX | R1 |
10 | START WX, JOBNAME =YZ4 | YZ4 | YZ4 |
Table 2 shows examples of DISPLAY commands. (The examples apply to DISPLAY JOBS, J, A, or TS, although only DISPLAY A commands are used in this figure.) The numbers in the second column indicate the jobs in Table 1 that apply to each DISPLAY command.
DISPLAY Command | Displayed Jobs |
---|---|
D A,YZ | 1, 7 |
D A,WX.YZ | 2 |
D A,WX.YZ* | 2, 3 |
D A,YZ.* | 1, 7 |
D A,WX* | 2, 3, 4, 5, 6, 9 |
D A,YZ* | 1, 7, 10 |
D A,WX*.YZ | 2 |
D A,WX*.YZ* | 2, 3, 4 |
D A,*.YZ* | 1, 2, 3, 4, 7, 8, 10 |
D A,*.YZ | 1, 2, 7 |
D A,WX*.* | 2, 3, 4, 5, 6, 9 |
D A,WX.* | 2, 3, 9 |
D A,* | Not valid (can be done using D A,ALL) |
D A,*.* | Not valid (can be done using D A,ALL) |
The following are examples of various forms of the DISPLAY JOBS, J, A, or TS command:
Example 1:
D A,L
Example 2:
D J,L
Example 3:
D J,A
Example 4:
D TS,WAGNERJ
Example 5:
D A,D96*
Example 6:
D A,*MASTER*
Example 7:
D TS,(LIST)
Example 8:
D J,L,USERID=WANDA
Example 9:
D J,PHONE,USERID=WANDA
Example 10:
D A,INIT*
Example 11:
D A,AOR2.X11
Example 12:
D A,AOR2.*
Example 13:
D A,AOR2.T1*
Example 14:
D A,AOR*.T1*
Example 15:
D A,*.T1*