NOTE: for the activities, IBM DB2 V10.5 is used.

 

 

Connect to DB2 SQL

This activity connects to a DB2 SQL Host. The Output of this activity should be used as input for all Connection parameters used for activities placed under DB2 SQL category.

Activity Parameters

The Connect to DB2 SQL activity parameters can be provided by manual inserted values or via IN arguments or variables:

Parameters:

The Read Only Output variable are the possible output values that the activity will provide:

 

 

 

 

 

Disconnect from DB2 SQL

This activity disconnects from a DB2 SQL Host.

Activity Parameters

The Disconnect from DB2 SQL activity parameters can be provided by manual inserted values or via IN arguments or variables:

Parameters:

 

 

 

 

 

Add User Access to Table

This activity adds privileges for an user to a database table.

Activity Parameters

The Add User Access to Table activity parameters can be provided by manual inserted values or via IN arguments or variables:

Parameters:

 

The Read Only Output variable are the possible output values that the activity will provide:

 

Execution: the activity will search for the user and for the table. If found, will attempt to grant permissions over the table to the provided user:

 

 

 

 

 

Delete Row(s) from Table

This activity deletes Row(s) from a DB2 Server database table.

Activity Parameters

The Delete Row(s) from Table activity parameters can be provided by manual inserted values or via IN arguments or variables:

Parameters:

Execution: the activity will delete all the rows from a table according to the given Where statement:

 

 

 

 

Insert Row(s) into Table

This activity inserts Row(s) on a DB2 Server database table.

Activity Parameters

The Insert Row(s) into Table activity parameters can be provided by manual inserted values or via IN arguments or variables:

Parameters:

The Read Only Output variable are the possible output values that the activity will provide:

 

Execution: the activity will insert the new row into the selected table. In the database, the row can be seen with the ID 3:

 

 

 

 

 

Remove User Access from Database

This activity removes privileges for an user to a database table.

Activity Parameters

The Remove User Access from Database activity parameters can be provided by manual inserted values or via IN arguments or variables:

Parameters:

 

The Read Only Output variable are the possible output values that the activity will provide:

 

 

 

 

 

 

Run query

This activity runs a query on a DB2 Server database.

Activity Parameters

The Run Query activity parameters can be provided by manual inserted values or via IN arguments or variables:

Parameters:

The Read Only Output variable are the possible output values that the activity will provide:

 

Execution: In the Tracking Data there can be seen the returned results:

 

The same result can be seen when executing the same SQL Select query from DB2 (IBM Data Studio was used for the examples):

 

 

 

 

Select Row(s) from Table

This activity selects and returns Row(s) from a DB2 Server database table.

Activity Parameters

The Select Row(s) from Table activity parameters can be provided by manual inserted values or via IN arguments or variables:

Parameters:

 

The Read Only Output variable are the possible output values that the activity will provide:

 

 

A more complex example, with fields, orders and statements can be seen in the image below:

Execution: In the Tracking Data there can be seen the returned results:

 

The same result can be seen when executing the same SQL Select query from DB2 (IBM Data Studio was used for the examples):