Table of Contents

Search

  1. Preface
  2. PowerExchange Navigator Introduction
  3. Data Maps
  4. Data Maps for Specific Data Sources
  5. Copybooks
  6. Registration Groups and Capture Registrations
  7. Extraction Groups and Extraction Maps
  8. Personal Metadata
  9. Database Row Test
  10. PowerExchange Navigator Examples
  11. Appendix A: PowerExchange Functions for User-Defined Fields
  12. Appendix B: User Access Method Programs
  13. Appendix C: Application Groups and Applications
  14. Appendix D: Data Map Properties
  15. Appendix E: Record, Field, and Table Properties
  16. Appendix F: DTL__CAPXTIMESTAMP Time Stamps
  17. Appendix G: Trace for Creating a Memory Map When Importing a COBOL Copybook

Navigator User Guide

Navigator User Guide

Adding a User-Defined Field to a Record

Adding a User-Defined Field to a Record

In data maps, you can define fields in records that use one or more PowerExchange functions in an expression to process source data.
These functions provide operations such as field splitting and concatenation. You can also use the CallProg function in an expression to run a user-defined program to process source data.
  1. Open the data map and the record.
  2. In the
    Record
    window, click the
    Expr(
    n
    )
    tab.
  3. To add a field to the end of the record, right-click anywhere on the
    Expr(
    n
    )
    tab and click
    Add Field at End
    .
    To add a field adjacent to a field, right-click a field and select to add the field before or after the selected field.
  4. To define the field properties, click in the cells in the
    Name
    ,
    Type
    ,
    Precision
    ,
    Scale
    ,
    Length
    , and
    Phase
    columns.
  5. To enter an expression for the field, click in the cell in the
    Expression
    column, or click the Browse button to open the
    Expression Editor
    dialog box.
    The following table describes the information to enter in the
    Expression Editor
    dialog box:
    Option
    Description
    Function List
    Double-click one or more PowerExchange functions to build an expression.
    The functions appear in the
    Expression
    box.
    Expression
    Enter an expression to populate or process the data in the field. An expression can contain one or more of the following items:
    • A text or numeric constant such as
      My text
      or
      1234
    • A PowerExchange function such as Concat or Split
    • The PowerExchange CallProg function that specifies a user-defined Assembler, C, COBOL, or PL/I program and its parameters
    Validate
    Validates the expression in the
    Expression
    box.
    If PowerExchange detects an error, an error message displays in the
    Validation
    box.
    Validation
    Displays error messages for errors detected during validation of an expression.
  6. Click
    OK
    .
  7. To test the user-defined field, complete the following actions:
    • On the
      Data Map
      tab in the
      Resource Explorer
      , right-click a table and click
      Properties
      .
    • In the
      Table Properties
      dialog box, select
      Refresh with missing columns
      in the
      Column Generation
      list.
    • Click
      OK
      .
    • Run a database row test on the table.

0 COMMENTS

We’d like to hear from you!