Checking the status of a task
Once a task has been created and scheduled, you can check the status of the task execution using line commands.
Procedure
On the Db2 Admin Task Scheduler panel, enter S in the Cmd area next to a task and press Enter.
- If the task has not yet been executed, message DAJM722I is displayed.
- If the task has been executed, the following panel is displayed:
This panel lists each instance of the task that was run via the Db2 administrative task scheduler. Using this panel, you can see the result of each task execution. The following fields and columns appear on this panel:
- Task Name
- The task name.
- Task Creator
- The task creator.
- Db2 Subsystem
- The Db2 subsystem ID.
- Max History
- The maximum number of task executions retained. This value is set in the Shared Profile Parameters.
- Userid
- The user ID under which the task was executed.
- SSID
- The Db2 SSID on which the task was run.
- Status
- One of the following:
- RUNNING: The task is currently running.
- COMPLETED: The task has finished running.
- NOTRUN: The task was not run at the schedule invocation time.
- UNKNOWN: The scheduler shut down while the task was running.
- Start Timestamp
- The timestamp that the task was initiated.
- End Timestamp
- The timestamp that the task completed or ended.
What to do next
- S - View details of the task execution
- O - View job/stored procedure output. If the task is a JCL job, then SDSF output will be displayed. If the task is a stored procedure, then output parameters will be displayed.