Table of Contents

Search

  1. Preface
  2. Introduction to Data Transformation
  3. Data Processor Transformation
  4. Wizard Input and Output Formats
  5. Relational Input and Output
  6. XMap
  7. Libraries
  8. Schema Object
  9. Command Line Interface
  10. Scripts
  11. Parsers
  12. Script Ports
  13. Document Processors
  14. Formats
  15. Data Holders
  16. Anchors
  17. Transformers
  18. Actions
  19. Serializers
  20. Mappers
  21. Locators, Keys, and Indexing
  22. Streamers
  23. Validators, Notifications, and Failure Handling
  24. Validation Rules
  25. Custom Script Components

Data Transformation User Guide

Data Transformation User Guide

DelimitedSections

DelimitedSections

The
DelimitedSections
anchor parses data that is divided into sections by a separator. It defines a group of nested anchors. Each nested anchor parses a single section.
The following table describes the properties of the
DelimitedSections
anchor:
Property
Description
disabled
Determines whether the Script ignores the component and all of the child components. Use this property to test, debug, and modify a Script. You can choose one of the following options:
  • Selected. The Script ignores the component.
  • Cleared. The Script applies the component.
The default is cleared.
marking
Determines whether an anchor is used as the start of the search scope for the succeeding anchor. You can choose one of the following options:
  • begin position. Place a reference point before the current anchor.
  • end position. Place a reference point after the current anchor.
  • full. Place a reference point before and after the current anchor.
  • none. Do not create a reference point.
For more information, see How a Parser Searches for Anchors.
name
A descriptive label for the component. This label appears in the log file and the
Events
view. Use the
name
property to identify the component that caused the event.
notifications
A list of
NotificationHandler
components that handle notifications from nested components. For more information, see Notifications.
on_fail
The action to take if the component fails. You can choose one of the following options:
  • Cleared. Take no action.
  • CustomLog. Write to the user log.
  • LogError. Write an error message to the engine log.
  • LogInfo. Write an information message to the engine log.
  • LogWarning. Write a warning message to the engine log.
  • NotifyFailure. Send a notification.
Default is cleared. For more information about handling component failures, see Failure Handling.
optional
Determines whether a component failure causes the parent component to fail. You can choose one of the following options:
  • Selected. Component failure does not cause the parent component to fail.
  • Cleared. Component failure causes the parent component to fail.
Default is cleared. For more information about component failure, see Failure Handling.
phase
Determines when the Script processes the component. You can choose one of the following options:
  • initial. The Script processes the component during the initial phase.
  • main. The Script processes the component during the main phase.
  • final. The Script processes the component during the final phase.
For more information, see How a Parser Searches for Anchors.
Default is main.
remark
A user-defined comment that describes the purpose or action of the component.
separator
Defines an anchor that delimits the sections.
separator_position
Defines the positioning of the
separator
relative to the sections. You can choose one of the following options:
  • after. There is a separator after each section, including the last section. For example,
    1|2|3|4|
  • around. There are separators before and after each section, including the first and last sections. For example,
    |1|2|3|4|
  • before. There is a separator before each section, including the first section. For example,
    |1|2|3|4
  • between. There is a separator between the successive sections, but not before the first section and not after the last section. For example,
    1|2|3|4
using_placeholders
Determines when the
DelimitedSections
anchor looks for the separator of an optional section that is missing from the source document. You can choose one of the following options:
  • always. The separator of a missing section always exists. For example,
    |1||3|
  • never. The separator of a missing section never exists. For example,
    |1|3
  • when necessary. The separator of a missing internal section always exists. The separator of a missing final section never exists. For example,
    |1||3
In these examples,
separator_position
is set to
before
, and sections 2 and 4 are missing.


Updated September 26, 2018