boundaries

Returns a boundaries object encapsulating properties and methods allowing to define the boundaries of each document in the job.

This object is available when triggering document boundaries On script.

Properties

The following table lists the properties of the boundaries object.

Property Return Type
currentDelim A read-only 1-based index (number) of the current delimiter in the file. In other words, the Beginning Of File (BOF) delimiter equals 1. It indicates the position of the current delimiter relative to the last document boundary

Methods

The following table describes the functions of the boundaries object. They are available with all file types.

Method Description Script type
find() Finds the first occurrence of a string starting from the current position.

Boundaries

Preprocessor, Extract, Condition, Repeat, Action, and Postprocessor steps

get()

Retrieves an array of strings.

Boundaries

getVariable() Retrieves a value of a variable stored in the boundaries object.

Boundaries

set()

Sets a new record boundary. (See: Record boundaries.)

Boundaries

setVariable()

Sets a boundaries variable to the specified value, automatically creating the variable if it doesn't exist yet.

Boundaries

 
  • Last Topic Update: 27, June, 2017 06:10 AM
  • Last Published: 23, May, 2019 01:55 PM