Creating an ODBC Data Source to Run a DB2 for z/OS Stored Procedure Transformation

Creating an ODBC Data Source to Run a DB2 for z/OS Stored Procedure Transformation

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:
  1. Create and compile the DB2 stored procedure on the z/OS system.
  2. Ensure that the PowerExchange Listener is running on the z/OS system.
  3. Create and configure an ODBC data source on Windows. For more information, see the
    PowerExchange Reference Manual
    .
  4. In the Transformation Developer, click
    Transformation > Import Stored Procedure
    .
  5. In the
    ODBC data source
    box, enter or browse to the ODBC data source that you configured.
  6. 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
    .
  7. 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
PowerCenter Transformation Guide
.

0 COMMENTS

We’d like to hear from you!