Table of Contents

Search

  1. Preface
  2. Scripting Overview
  3. Tcl Scripting
  4. SQL Scripting

Adding Tcl Expressions

After you write a Tcl script based on the information in the
Informatica Data Replication Scripting Guide
, enter the script for a source table in the Data Replication Console.
Before you begin, make sure that the Console is in Edit mode.
  1. On the
    Map Tables
    tab, select the mapped source table row for which to define a Tcl expression.
  2. Click the
    Add or Show Table Expression
    icon button above the source tables filter field, or right-click the table row and click
    Add or Show Table Expression
    .
    The
    Add/Show expressions
    dialog box appears.
  3. Click
    New
    .
  4. Enter an expression name and click
    OK
    .
    An expression name can be no longer than 50 characters and can include only the digits 0-9, Latin letters A-Z and a-z, and the underscore (_) character.
  5. In the
    Language
    field, select
    TCL
    .
  6. Double-click the
    Expression
    field or click
    Edit
    .
    The
    Tcl Expression Editor
    dialog box appears.
    Tcl Expression Editor dialog box
  7. Enter a Tcl expression for processing the replicated data and click
    OK
    .
    The Tcl expression appears in the
    Add/Show expressions
    dialog box.
    • To edit an expression, double-click in the
      Expression
      field, or select the expression row and click
      Edit
      .
    • To rename an expression, double-click in the
      Name
      field. Then edit the expression name and press
      Enter
      .
    • To delete an expression that is not assigned to any virtual column, select the expression row and click
      Delete
      .
  8. When done, click
    Close
    .
Next, you can assign the Tcl expression to a virtual column.

0 COMMENTS

We’d like to hear from you!