Working with jobs in a distributed relational database
The Work with Job (WRKJOB) command presents the Work with Job menu. This menu allows you to select options to work with or to change information related to a specified job. Enter the command without any parameters to get information about the job you are currently using.
Specify a job to get the same information pertaining to it by entering its name in the command like this:
WRKJOB JOB(job-number/user-ID/job-name)You can get the information provided by the options on the menu about whether the job is on a job queue, output queue, or active. However, a job is not considered to be on the system until all of its input has been completely read in. Only then is an entry placed on the job queue. The options for the job information are:
- Job status attributes
- Job definition attributes
- Spooled file information
Information about the following options can be shown only when the job is active:
- Job run attributes
- Job log information
- Program stack information
- Job lock information
- Library list information
- Open file information
- File override information
- Commitment control status
- Communications status
- Activation groups
- Mutexes
Option 10 (Display job log) gives you information about an active job or a job on a job queue. For jobs that have ended you can usually find the same information by using option 4 (Work with spooled files). This presents the Work with Spooled Files display, where you can use option 5 to display the file named QPJOBLOG if it is on the list. The Work with Job (WRKJOB) command presents the Work with Job menu.
Parent topic:
Monitoring relational database activity
Related reference
Work with Job (WRKJOB) command
Application does not complete in the expected time