Scheduling the SYSPROC.SYSTS_UPDATE stored procedure
You can use the Db2 administrative task scheduler to call the SYSPROC.SYSTS_UPDATE stored procedure according to a specific schedule.
Procedure
To call the SYSPROC.SYSTS_UPDATE stored procedure according to a specific schedule:
- Set the UPDATE FREQUENCY option in the SYSPROC.SYSTS_CREATE stored procedure.
- To schedule the automatic index update task, call the SYSPROC.ADMIN_TASK_ADD stored procedure.
- Provide the UPDATEFREQUENCY value from the SYSIBMTS.SYSTEXTINDEXES table directly as input parameter point-in-time.
- Provide the string SYSTS_UPDATE as input parameter procedure-name.
- Provide the parameters to the SYSPROC.SYSTS_UPDATE stored procedure as input parameter procedure-input.