17.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.

Chapter 9– Developing user-defined functions 267<br />

Figure 9.1 – Creating a new user-defined function<br />

3. In this example, you will create a SQL user-defined function. TypeUDF1 in the Name<br />

field, and select the SQL language, as shown in Figure 9.2.<br />

4. Select the Deploy & Run: (Table) Return a result set template. View details about the<br />

template in the Template Details tab, or preview the code by opening the DDL tab. This<br />

window is shown in Figure 9.2.

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

Saved successfully!

Ooh no, something went wrong!