Table of Contents

Search

  1. Preface
  2. Working with Transformations
  3. Aggregator Transformation
  4. Custom Transformation
  5. Custom Transformation Functions
  6. Data Masking Transformation
  7. Data Masking Examples
  8. Expression Transformation
  9. External Procedure Transformation
  10. Filter Transformation
  11. HTTP Transformation
  12. Identity Resolution Transformation
  13. Java Transformation
  14. Java Transformation API Reference
  15. Java Expressions
  16. Java Transformation Example
  17. Joiner Transformation
  18. Lookup Transformation
  19. Lookup Caches
  20. Dynamic Lookup Cache
  21. Normalizer Transformation
  22. Rank Transformation
  23. Router Transformation
  24. Sequence Generator Transformation
  25. Sorter Transformation
  26. Source Qualifier Transformation
  27. SQL Transformation
  28. Using the SQL Transformation in a Mapping
  29. Stored Procedure Transformation
  30. Transaction Control Transformation
  31. Union Transformation
  32. Unstructured Data Transformation
  33. Update Strategy Transformation
  34. XML Transformations

Transformation Guide

Transformation Guide

Indicator Functions (Row-Based Mode)

Indicator Functions (Row-Based Mode)

Use the indicator functions when you want the procedure to get the indicator for an input port or to set the indicator for an output port. The indicator for a port indicates whether the data is valid, null, or truncated.
PowerCenter provides the following indicator functions:
  • INFA_CTGetIndicator().
    Gets the indicator for an input port. Use the following syntax:
    INFA_INDICATOR INFA_CTGetIndicator(INFA_CT_INPUTPORT_HANDLE dataHandle);
    The return value datatype is INFA_INDICATOR. Use the following values for INFA_INDICATOR:
    • INFA_DATA_VALID.
      Indicates the data is valid.
    • INFA_NULL_DATA.
      Indicates a null value.
    • INFA_DATA_TRUNCATED.
      Indicates the data has been truncated.
  • INFA_CTSetIndicator().
    Sets the indicator for an output port. Use the following syntax:
    INFA_STATUS INFA_CTSetIndicator(INFA_CT_OUTPUTPORT_HANDLE dataHandle, INFA_INDICATOR indicator);
    The following table describes the arguments for this function:
    Argument
    Datatype
    Input/Output
    Description
    dataHandle
    INFA_CT_OUTPUTPORT_HANDLE
    Input
    Output port handle.
    indicator
    INFA_INDICATOR
    Input
    The indicator value for the output port. Use one of the following values:
    • INFA_DATA_VALID. Indicates the data is valid.
    • INFA_NULL_DATA. Indicates a null value.
    • INFA_DATA_TRUNCATED. Indicates the data has been truncated.
    The return value datatype is INFA_STATUS. Use INFA_SUCCESS and INFA_FAILURE for the return value.
    If you use the INFA_CTSetPassThruPort() function on an input/output port, do not set the data or indicator for that port.

0 COMMENTS

We’d like to hear from you!