Listing multiple execution statuses of scheduled tasks
You can use the ADMIN_TASK_STATUS table function with the max-history parameter to view multiple execution statuses of scheduled tasks.
About this task
The ADMIN_TASK_STATUS(MAX_HISTORY) table function returns a row of data for the most recent executions of each task (up to the max-history value). This function contacts the administrative task scheduler to update the Db2 task list in the SYSIBM.ADMIN_TASKS table and the status history for the task in the SYSIBM.ADMIN_TASKS_HIST table, if necessary, and reads the task statuses from theses tables.
To prevent the SYSIBM.ADMIN_TASKS_HIST table from containing too many status entries, the administrative task scheduler limits the number of status entries per task that are stored. This limit is specified by the MAXHIST parameter. This parameter is a positive integer with a default value of 10. When the limit is reached, the oldest status entries are deleted. You can specify this parameter in the started task when the administrative task scheduler starts, or you can modify this parameter dynamically by using the MODIFY console command.
Procedure
To list multiple execution statuses of scheduled tasks: