Implementing a Stored Procedure Transformation in a Mapping
Implementing a Stored Procedure Transformation in a Mapping
To implement a Stored Procedure transformation for a DB2 for z/OS stored procedure in a mapping, complete the following high-level tasks:
Create and compile the DB2 stored procedure on the z/OS system.
Ensure that the PowerExchange Listener is running on the z/OS system.
Create and configure an ODBC data source on Windows. For more information, see the
PowerExchange Reference Manual
.
In the Transformation Developer, click
Transformation > Import Stored Procedure
.
In the
ODBC data source
box, enter or browse to the ODBC data source that you configured.
In the Mapping Designer, add the Stored Procedure transformation to the mapping.
When you import the stored procedure, the Mapping Designer does not qualify the stored procedure name with the owner. If you leave the name as is, PowerExchange executes any unqualified stored procedures by using the user ID of the PowerExchange connection as the schema name. So, if the user ID on the PowerExchange connection is USER1, PowerExchange calls unqualified stored procedures as USER1.
procedurename
.
If the schema of the stored procedure is different from the user ID that starts the PowerExchange Listener, edit properties for the Stored Procedure transformation in the mapping.
On the
Properties
tab in the
Edit Transformations
dialog box, add the schema name to the stored procedure name in the
Stored Procedure Name
box. For example, if the stored procedure name is ZEMPS1 and the user ID that starts the PowerExchange Listener is USER2, enter the following value in the
Stored Procedure Name
box:
USER2.ZEMPS
For more information about implementing Stored Procedure transformations in mappings, see the