Chapter 10 Building Data Transformation Diagrams


Inserting a script execution

A script execution represents the execution of a script for each row of the incoming flow.

You have to type a script language for the script execution and define a script expression in the Script tab. Data from the incoming flow may be used as parameter.

In the case of a complex expression, such as the combination of multiple sources, you need to edit the data structure columns in order to add sources and modify the source expression.

You can modify the data structure columns of a script execution.

Steps To insert a script execution:

  1. Select the Script Execution tool in the palette, and create the corresponding object in the diagram.
  2. Select the Data Flow tool, and draw a flow from the preceding step (a data input or action) to the script execution to initialize it with the appropriate columns.
  3. Double-click the script execution symbol to open its property sheet. The Data Structure Columns tab is automatically completed with the values from the incoming flow.
  4. Click the Data Structure Columns tab and do any appropriate changes.
  5. Click the Script tab, type a script language from the Script Language list, and type a script expression in the textbox.
  6. Click OK to save your changes and return to the diagram.

 


Copyright (C) 2007. Sybase Inc. All rights reserved.