Table of Contents

Search

  1. Preface
  2. The Transformation Language
  3. Constants
  4. Operators
  5. Variables
  6. Dates
  7. Functions

Transformation Language Reference

Transformation Language Reference

EXTRACT_STRUCT

EXTRACT_STRUCT

Extracts all elements from a dynamic struct port in an Expression transformation. Use the dot operator in expressions to extract elements of a struct. For more information on using the dot operator, see the
Data Engineering Integration User Guide
.
When you use the EXTRACT_STRUCT function, you must specify a base port in which you set the dynamic struct field that is being used as the argument.
You cannot nest other functions within the EXTRACT_STRUCT function or nest the EXTRACT_STRUCT function in another function.

Syntax

EXTRACT_STRUCT(dynamic_struct1)
The following table describes the arguments for this command:
Argument
Required/Optional
Description
Dynamic struct
Required
Extracts all elements from a dynamic struct port in an Expression transformation.

Return Value

Dynamic type consisting of all the struct elements as generated fields.

Example

The following function extracts and flattens a dynamic struct:
EXTRACT_STRUCT(Struct_emp_info_struct_as)

0 COMMENTS

We’d like to hear from you!