Creating and scheduling jobs
You can use IBM® Db2® Data Management Console to create and schedule jobs.
Procedure
To create and schedule jobs:
- Access the console.
- In the Databases page, click on the connection that you want to work on.
- From the navigation menu, select Jobs.
- Click Create job and select the type of job from the
list. To create an instant job, select On-demand.
- In the Create new job page, complete the following steps:
- Enter the name of the job to be created.
- Optional: Provide a short description of the job.
- Define the SQL script that will run on the database.
- Optional: Click the Settings icon in the statement text box. The Script setting window
displays.
- Enter the Db2 statement delimiter (; is the default value ).
- Click the Automatically commit each statement toggle button to set the option to Yes/No.
- Click Save.
- Optional: Enter email to receive notification to help you monitor the execution results of this job.
- Click Next. The Summary page displays.
- Review the job details and click Finish. The job is created and listed in the Jobs page where you can view the job definition, schedule detail and last run status.
- To create a scheduled job, select Scheduled
- In the Create new job page, complete the following steps:
- Enter the name of the job to be created.
- Optional: Provide a short description of the job.
- Define the SQL script that will run on the database.
- Optional: Click the Settings icon in the statement text box. The Script setting window
displays.
- Enter the Db2 statement delimiter (; is the default value ).
- Click the Automatically commit each statement toggle button to set the option to Yes/No.
- Click Save.
- Optional: Enter email to receive notification to help you monitor the execution results of this job.
- Click Next.
- Specify the Start date, and Time, for scheduling the job.
- Click Next. The Summary page displays.
- Review the job details and click Finish. The job is created and listed in the Jobs page where you can view the job definition, schedule detail and last run status.
- To update job, click on the check box in front of the job name listed in the Jobs
page and do one of the following:
- To modify job settings, click Edit.
- To create a copy of an existing job, click Copy.
- To run the job, click Run. You can choose to run the job with existing credential or run with alternative credentials by providing the username and password.
- To pause the schedule of the job, click Pause schedule.
- To delete one or more jobs, click on the check boxes in front of the job name to select the jobs and click Delete.
- To cancel the selection, click Cancel.