Hi, I'm Ask INFA!
What would you like to know?
ASK INFAPreview
Please to access Ask INFA.

Table of Contents

Search

  1. Preface
  2. Working with Transformations
  3. Aggregator Transformation
  4. Classifier Transformation
  5. Cleanse transformation
  6. Comparison Transformation
  7. Custom Transformation
  8. Custom Transformation Functions
  9. Consolidation Transformation
  10. Data Masking Transformation
  11. Data Masking Examples
  12. Decision Transformation
  13. Dynamic Lookup Cache
  14. Expression Transformation
  15. External Procedure Transformation
  16. Filter Transformation
  17. HTTP Transformation
  18. Identity Resolution Transformation
  19. Java Transformation
  20. Java Transformation API Reference
  21. Java Expressions
  22. Java Transformation Example
  23. Joiner Transformation
  24. Key Generator Transformation
  25. Labeler Transformation
  26. Lookup Transformation
  27. Lookup Caches
  28. Match Transformation
  29. Match Transformations in Field Analysis
  30. Match Transformations in Identity Analysis
  31. Merge Transformation
  32. Normalizer Transformation
  33. Parse transformation
  34. Rank Transformation
  35. Router Transformation
  36. Rule Specification transformation
  37. Sequence Generator Transformation
  38. Sorter Transformation
  39. Source Qualifier Transformation
  40. SQL Transformation
  41. Using the SQL Transformation in a Mapping
  42. Stored Procedure Transformation
  43. Standardizer Transformation
  44. Transaction Control Transformation
  45. Union Transformation
  46. Unstructured Data Transformation
  47. Update Strategy Transformation
  48. Verifier transformation
  49. Weighted Average Transformation
  50. XML Transformations

Transformation Guide

Transformation Guide

CONSOL_MODALEXACT

CONSOL_MODALEXACT

Identifies the row with the highest count of the most frequent values.
For example, consider a row that has three ports that contain the most frequent values in the record group. The count of the most frequent values for that row is "3."
You must use this function in conjunction with the
CONSOL_GETROWFIELD
function. The
CONSOL_GETROWFIELD
returns the values from the row that the
CONSOL_MODALEXACT
function identifies.

Syntax

CONSOL_MODALEXACT(
string1, [string2, ..., stringN,] group by
)
The following table describes the arguments for this command:
Argument
Required/Optional
Description
string
Required
Input port name.
group by
Required
Name of the input port that contains the group identifier.

Return Value

TRUE for the row that scores the highest count of the most frequent fields, FALSE for all other rows.

Example

The following expression uses the
CONSOL_MODALEXACT
function to find the row that contains the highest count of the most frequent fields:
IF (CONSOL_MODALEXACT(First_Name,Last_Name,GroupKey,GroupKey)) THEN First_Name1 := CONSOL_GETROWFIELD(0) Last_Name1 := CONSOL_GETROWFIELD(1) GroupKey1 := CONSOL_GETROWFIELD(2) ELSE First_Name1 := First_Name Last_Name1 := Last_Name GroupKey1 := GroupKey ENDIF
In this expression, the
CONSOL_MODALEXACT
function analyzes rows in a record group and identifies a single row. The
CONSOL_GETROWFIELD
functions use consecutive numbers to read the port values for that row and write the values to the output ports.

0 COMMENTS

We’d like to hear from you!