2020.2

Table Of Contents
Name Description
"newIntArray()" on
page420
Returns an integer array.
"newLongArray()" on
page421
Returns a long array.
"newStringArray()"
on page421
Returns a string array.
"openBinaryReader
()" on page421
Opens a file as a binary file for reading purposes.
"openBinaryWriter()"
on page421
Opens a file as a binary file for writing purposes.
"openTextReader()"
on page422
Opens a file as a text file for reading purposes.
"openTextWriter()" on
page424
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377). 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249).
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
page270 and "Extract step properties" on page337).
Page 375