2021.1

Table Of Contents
Name Description
page433
"newStringArray()" on
page434
Returns a string array.
"openBinaryReader()"
on page434
Opens a file as a binary file for reading purposes.
"openBinaryWriter()" on
page434
Opens a file as a binary file for writing purposes.
"openTextReader()" on
page434
Opens a file as a text file for reading purposes.
"openTextWriter()" on
page436
Opens a file as a text file for writing purposes.
Using scripts in the DataMapper
In the DataMapper every part of the extraction process can be customized using scripts.
A script can be used to set boundaries for a data source (see "Setting boundaries using
JavaScript" on page387). The script determines where a new record starts.
Scripts can also be used in different steps in the extraction workflow. You can:
l Modify the incoming data prior to executing the rest of the extraction workflow, via a
Preprocessor (see "Preprocessor step" on page255).
l Edit extracted data in a field of the Data Model using a Post function script (entered on
the Step properties pane, under Field Definition; see "Modifying extracted data" on
page277 and "Extract step properties" on page344).
l Enter a script in a JavaScript-based field (see "Expression-based field" on page273).
Note that the last value attribution to a variable is the one used as the result of the
expression. It is possible to refer to previously extracted fields if they are extracted higher
in this list or in previous Extract steps in the extraction workflow.
Page 385