You can create a DB2 SQL or IDS SPL procedure or function, or an IBM database table or view by specifying and running its DDL script in the IBM Script Designer.
Important: If you use Visual Studio 2008, do not create stored procedures with names that are longer than 39 characters. Stored procedures with names that are longer than 39 characters can cause errors when you use the Visual Studio 2008 debugger and other components.
Creating overloaded procedures that are based on data type produces undefined
results.
To create a DB2 SQL or IDS SPL procedure or function, or an IBM database table or view by using a script:
The IBM Script Designer opens.
You can insert one of the following code fragments: CREATE TABLE or CREATE VIEW.
You also can insert one of the following code fragments: IF, CASE, LOOP,
REPEAT, WHILE, CURSOR, FOR, CREATE PROCEDURE, or CREATE FUNCTION (scalar and
table).
The IBM Output Message Pane displays the status messages as the script runs. If your script runs successfully, the DB2 SQL or IDS SPL routine or IBM database object is created in the database.
You cannot save a script. You must run the script to create the routine or object.
IBM Script Designer | Managing Procedures, Functions, and Objects