16.10.2015 Views

Getting Started with IBM Data Studio for DB2

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

200 <strong>Getting</strong> <strong>Started</strong> <strong>with</strong> <strong>IBM</strong> <strong>Data</strong> <strong>Studio</strong> <strong>for</strong> <strong>DB2</strong><br />

For this example, we will use the following sample test script which will create a new<br />

table and then immediately drop the same table, leaving the database untouched:<br />

create table employee(c1 int, c2 int);<br />

drop table employee;<br />

Figure 6.6 – The script component<br />

<br />

Optional: Click Schedules and then click Add Schedule to add one or more schedules to<br />

the job.<br />

A schedule defines when a job runs, whether the job is repeating, and whether the<br />

schedule is limited in number of runs or in time. The schedule also defines one or more<br />

databases on which to run the job. A job can have any number of schedules attached to<br />

it, but each schedule only applies to one job.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!