16.10.2015 Views

Getting Started with IBM Data Studio for DB2

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

8<br />

<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 />

Chapter 5 – Creating SQL and XQuery scripts..................................................................159<br />

5.1 Creating SQL and XQuery scripts: The big picture..................................................160<br />

5.1.1 Creating a data development project: SQL and XQuery scripts .......................160<br />

5.1.2 Creating a data design project...........................................................................165<br />

5.1.3 Creating new SQL and XQuery scripts: Using <strong>Data</strong> Projects............................167<br />

5.2 Changing the database connection..........................................................................169<br />

5.3 Designing a script.....................................................................................................171<br />

5.3.1 Validating the syntax in SQL and XQuery statements ......................................172<br />

5.3.2 Validating the semantics in SQL statements .................................................174<br />

5.3.3 Changing the statement terminator................................................................175<br />

5.3.4 Content assist in the SQL and XQuery editor................................................176<br />

5.4 Special registers.......................................................................................................178<br />

5.5 Running the script ....................................................................................................179<br />

5.5.1 JDBC result preferences ...................................................................................180<br />

5.5.2 Command line processor result preferences.....................................................181<br />

5.5.3 SQL Results view ..............................................................................................182<br />

5.6 Creating SQL statements <strong>with</strong> the SQL Builder.......................................................184<br />

5.7 Summary ..................................................................................................................190<br />

5.8 Review questions .....................................................................................................190<br />

Chapter 6 – Managing jobs................................................................................................193<br />

6.1 Job management: The big picture............................................................................193<br />

6.2 Job management in the <strong>Data</strong> <strong>Studio</strong> web console...................................................194<br />

6.3 Jobs and job components ........................................................................................195<br />

6.3.1 The components of a job ...................................................................................195<br />

6.3.2 Job types ...........................................................................................................196<br />

6.4 Create and schedule a job .......................................................................................197<br />

6.4.1 Creating jobs......................................................................................................198<br />

6.4.2 Scheduling an existing job.................................................................................204<br />

6.5 Running a job <strong>with</strong>out scheduling ............................................................................207<br />

6.6 Monitoring jobs: Notifications and job history...........................................................207<br />

6.6.1 Setting up email notifications.............................................................................208<br />

6.6.2 Viewing the history of a job................................................................................209<br />

6.7 Scheduling jobs from the <strong>Data</strong> <strong>Studio</strong> client ............................................................210<br />

6.8 Exercises..................................................................................................................211<br />

6.9 Summary ..................................................................................................................211<br />

6.10 Review questions ...................................................................................................212

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

Saved successfully!

Ooh no, something went wrong!